From 25b805c1742120907396652d4fadda63a0a707db Mon Sep 17 00:00:00 2001 From: shane Date: Mon, 18 Jul 2022 11:01:57 +0800 Subject: [PATCH] docs: correct confusing comments in ante.IncrementSequenceDecorator (#12604) (cherry picked from commit 6a08830840fb7d9728f473e192e151af869c3710) --- x/auth/ante/sigverify.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/auth/ante/sigverify.go b/x/auth/ante/sigverify.go index c77632a7d020..98b628a12fc2 100644 --- a/x/auth/ante/sigverify.go +++ b/x/auth/ante/sigverify.go @@ -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