docs: Documented error handling in OfferSnapshot method (#20380)
Co-authored-by: cool-developer <51834436+cool-develope@users.noreply.github.com>
This commit is contained in:
co-authored by
cool-developer
parent
16437119e0
commit
072a95e0e1
@@ -295,6 +295,10 @@ func (app *BaseApp) OfferSnapshot(req *abci.OfferSnapshotRequest) (*abci.OfferSn
|
||||
return &abci.OfferSnapshotResponse{Result: abci.OFFER_SNAPSHOT_RESULT_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,
|
||||
|
||||
Reference in New Issue
Block a user