docs: enhance OfferSnapshot documentation (#24017)

This commit is contained in:
Hoang Do 2025-03-17 21:01:36 +07:00 committed by GitHub
parent 5f36263548
commit ec2a017160
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,