-
Notifications
You must be signed in to change notification settings - Fork 211
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
conservative cache: allow nonce gap in mempool #3402
Comments
This was referenced Aug 3, 2022
bors bot
pushed a commit
that referenced
this issue
Aug 5, 2022
## Motivation <!-- Please mention the issue fixed by this PR or detailed motivation --> Closes #3401 Closes #3402 Closes #3389 ## Changes <!-- Please describe in detail the changes made --> - in vm relaxes the nonce comparison from `tx.Nonce == acct.NextNonce()` to `tx.Nonce >= acct.NextNonce()` - in conservative cache - use container.List to keep mempool transactions - allow nonce gap ## Test Plan <!-- Please specify how these changes were tested (e.g. unit tests, manual testing, etc.) --> unit test, systest
bors bot
pushed a commit
that referenced
this issue
Aug 5, 2022
## Motivation <!-- Please mention the issue fixed by this PR or detailed motivation --> Closes #3401 Closes #3402 Closes #3389 ## Changes <!-- Please describe in detail the changes made --> - in vm relaxes the nonce comparison from `tx.Nonce == acct.NextNonce()` to `tx.Nonce >= acct.NextNonce()` - in conservative cache - use container.List to keep mempool transactions - allow nonce gap ## Test Plan <!-- Please specify how these changes were tested (e.g. unit tests, manual testing, etc.) --> unit test, systest
bors bot
pushed a commit
that referenced
this issue
Aug 5, 2022
## Motivation <!-- Please mention the issue fixed by this PR or detailed motivation --> Closes #3401 Closes #3402 Closes #3389 ## Changes <!-- Please describe in detail the changes made --> - in vm relaxes the nonce comparison from `tx.Nonce == acct.NextNonce()` to `tx.Nonce >= acct.NextNonce()` - in conservative cache - use container.List to keep mempool transactions - allow nonce gap ## Test Plan <!-- Please specify how these changes were tested (e.g. unit tests, manual testing, etc.) --> unit test, systest
bors bot
pushed a commit
that referenced
this issue
Aug 5, 2022
## Motivation <!-- Please mention the issue fixed by this PR or detailed motivation --> Closes #3401 Closes #3402 Closes #3389 ## Changes <!-- Please describe in detail the changes made --> - in vm relaxes the nonce comparison from `tx.Nonce == acct.NextNonce()` to `tx.Nonce >= acct.NextNonce()` - in conservative cache - use container.List to keep mempool transactions - allow nonce gap ## Test Plan <!-- Please specify how these changes were tested (e.g. unit tests, manual testing, etc.) --> unit test, systest
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
tx model (
txs/cache.go
,txs/conservative_state.go
refactoring)applyLayer
cannot loop over incremental nonces, this needs to be refactored; it cannot calculatenumApplied
with simple subtraction. change inequality (validity predicate) to check that tx nonce is>= NextNonce()
accountCache.moreInDB
: update logic to allow for nonce gapsThe text was updated successfully, but these errors were encountered: