Skip to content
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

consortium-v2: increase the nonce of sender before transaction execution #434

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

minh-bq
Copy link
Contributor

@minh-bq minh-bq commented Apr 4, 2024

Currently, in system transaction we increase nonce after transaction execution
which is not consistent with normal transaction. This change does not require a
hardfork as:

  • Nonce is not used when executing transaction in virtual machine
  • Consortium-v2 is after Byzantium so we don't fall through the path to
    calculate root hash after transaction execution

Reference: bnb-chain/bsc#2185

Currently, in system transaction we increase nonce after transaction execution
which is not consistent with normal transaction. This change does not require a
hardfork as:
- Nonce is not used when executing transaction in virtual machine
- Consortium-v2 is after Byzantium so we don't fall through the path to
  calculate root hash after transaction execution

Reference: bnb-chain/bsc#2185
@minh-bq minh-bq merged commit 44ad3d9 into axieinfinity:master Apr 5, 2024
1 check passed
@minh-bq minh-bq deleted the fix/system-txs-set-nonce branch April 5, 2024 08:43
Francesco4203 pushed a commit to Francesco4203/ronin that referenced this pull request Jun 18, 2024
…ion (axieinfinity#434)

Currently, in system transaction we increase nonce after transaction execution
which is not consistent with normal transaction. This change does not require a
hardfork as:
- Nonce is not used when executing transaction in virtual machine
- Consortium-v2 is after Byzantium so we don't fall through the path to
  calculate root hash after transaction execution

Reference: bnb-chain/bsc#2185
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants