Skip to content

Panics in ABCI calls #16002

Discussion options

You must be logged in to vote

Basically on runTx we want to recover from any panics caused by a tx, otherwise anyone sending a failing tx could halt the entire chain. So we recover, mark the tx as failed and move on.

With BeginBlock and EndBlock it's different as it's something triggered by CometBFT through ABCI, so there's no user intervention here and these functions are expected to succeed to keep the chain running.

I believe the link you've posted is pointing out that developers should be aware of the implications of panicking in these methods, and what could cause a panic. So it's about a possible/hypothetical vulnerability in any chain using the SDK. It also says There should be no unanticipated panics in these …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alexanderbez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants