-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow multiple transactions from the same account on the same block #5905
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5905 +/- ##
=======================================
Coverage 57.06% 57.06%
=======================================
Files 342 342
Lines 20056 20056
=======================================
Hits 11444 11444
Misses 7767 7767
Partials 845 845
|
@@ -219,10 +219,7 @@ 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 CheckTx or RecheckTX | |||
// since it is merely updating the nonce. As a result, this has the side effect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would undo this comment removal. The idea is still the same. BaseApp maintains two different states -- check and deliver state. Sending sequential txs for the same block can still be unreliable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bump @mjackson001
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mjackson001 can you add an entry on the CHANGELOG.md
under BugFixes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK pending changelog entry @mjackson001 :)
@@ -96,6 +96,7 @@ to now accept a `codec.JSONMarshaler` for modular serialization of genesis state | |||
when method receivers are offline/multisig keys. | |||
* (x/auth) [\#5892](https://github.com/cosmos/cosmos-sdk/pull/5892) Add `RegisterKeyTypeCodec` to register new | |||
types (eg. keys) to the `auth` module internal amino codec. | |||
* (x/auth) Allow more than one Tx per account per block |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* (x/auth) Allow more than one Tx per account per block | |
* (x/auth) [\#5905](https://github.com/cosmos/cosmos-sdk/pull/5905) Fix `IncrementSequenceDecorator` to use is `IsReCheckTx` instead of `IsCheckTx` to allow account sequence incrementing. |
@@ -219,10 +219,7 @@ 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 CheckTx or RecheckTX | |||
// since it is merely updating the nonce. As a result, this has the side effect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bump @mjackson001
replaced by #5950 |
Closes: #XXX
Description
Removes code that was preventing multiple transactions from being submitted from the same account in a single block, even if the transactions had correctly incremented sequence numbers and were submitted in the proper order.
For contributor use:
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerFor admin use:
WIP
,R4R
,docs
, etc)