docs: enhance OfferSnapshot documentation (#24017)
This commit is contained in:
parent
5f36263548
commit
ec2a017160
@ -283,6 +283,10 @@ func (app *BaseApp) OfferSnapshot(req *abci.RequestOfferSnapshot) (*abci.Respons
|
||||
return &abci.ResponseOfferSnapshot{Result: abci.ResponseOfferSnapshot_REJECT}, nil
|
||||
|
||||
default:
|
||||
// CometBFT errors are defined here: https://github.com/cometbft/cometbft/blob/main/statesync/syncer.go
|
||||
// It may happen that in case of a CometBFT error, such as a timeout (which occurs after two minutes),
|
||||
// the process is aborted. This is done intentionally because deleting the database programmatically
|
||||
// can lead to more complicated situations.
|
||||
app.logger.Error(
|
||||
"failed to restore snapshot",
|
||||
"height", req.Snapshot.Height,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user