CometBFT
crashes with panic in fendermint
during BeginBlock
when fendermint
is catching up (replaying) from CometBFT
#1196
Labels
bug
Something isn't working
Description:
We encountered an issue where
cometbft
crashes with a panic caught infendermint
. This issue occurs because, inBeginBlock
, we attempt to resolve the CometBFT validator ID to a public key. However, whenfendermint
’sdata
folder is deleted andfendermint
is restarted,cometbft
attempts to start block replay but is not ready for the RPC API connection thatfendermint
requires for this process.Steps to Reproduce:
cometbft
andfendermint
.fendermint
and delete itsdata
folder.fendermint
.Observed Errors:
cometbft
Logs Before Crash:fendermint
Panic:Cause:
The issue seems to be due to this line in
validators.rs
, wherefendermint
tries to resolve the validator ID to a public key by connecting to thecometbft
RPC API duringBeginBlock
. Ifcometbft
is not fully ready (due to replay or a fresh start with deleted data), this connection fails, causingfendermint
to panic and terminate.The text was updated successfully, but these errors were encountered: