Skip to content
This repository was archived by the owner on Jun 6, 2025. It is now read-only.

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

Merged
minh-bq merged 1 commit intoaxieinfinity:masterfrom
minh-bq:fix/system-txs-set-nonce
Apr 5, 2024
Merged

consortium-v2: increase the nonce of sender before transaction execution#434
minh-bq merged 1 commit intoaxieinfinity:masterfrom
minh-bq:fix/system-txs-set-nonce

Conversation

@minh-bq
Copy link
Copy Markdown
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

@minh-bq minh-bq requested review from DNK90, NganSM and andicrypt April 4, 2024 06:23
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
@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants