docs: correct confusing comments in ante.IncrementSequenceDecorator (#12604)

This commit is contained in:
shane 2022-07-18 11:01:57 +08:00 committed by GitHub
parent 0a3c597ced
commit 6a08830840
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -310,8 +310,8 @@ func (svd SigVerificationDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simul
// IncrementSequenceDecorator handles incrementing sequences of all signers.
// Use the IncrementSequenceDecorator decorator to prevent replay attacks. Note,
// there is no need to execute IncrementSequenceDecorator on RecheckTX since
// CheckTx would already bump the sequence number.
// there is need to execute IncrementSequenceDecorator on RecheckTx since
// BaseApp.Commit() will set the check state based on the latest header.
//
// NOTE: Since CheckTx and DeliverTx state are managed separately, subsequent and
// sequential txs orginating from the same account cannot be handled correctly in