Skip to content

Commit

Permalink
catch error while block building (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc committed Jan 8, 2024
1 parent ed77173 commit 64b64a9
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions packages/core/src/blockchain/txpool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,18 @@ export class TxPool {
delete this.#hrmp[id]
}
}
await this.buildBlockWithParams({
transactions,
upwardMessages,
downwardMessages,
horizontalMessages,
unsafeBlockHeight,
})

try {
await this.buildBlockWithParams({
transactions,
upwardMessages,
downwardMessages,
horizontalMessages,
unsafeBlockHeight,
})
} catch (err) {
logger.error({ err }, 'build block failed')
}
}

async upcomingBlocks() {
Expand Down

0 comments on commit 64b64a9

Please sign in to comment.