Skip to content
This repository has been archived by the owner on Feb 18, 2025. It is now read-only.

eth/tracers: fix system transaction and prestate tracer after Venoki #565

Merged
merged 2 commits into from
Sep 11, 2024

Conversation

minh-bq
Copy link
Collaborator

@minh-bq minh-bq commented Sep 9, 2024

  • core: skip gas check for system transaction when tracing

As system transaction has 0 gas price, it does not pass the check that gas price
must be greater or equal to base fee when base fee is not 0. Skip gas check for
system transaction in TransitionDb, system transaction will go through
TransitionDb only in tracing path not in normal transaction processing path.

  • eth/tracers: fix balance tracking in prestate tracer after Venoki

Add ronin treasury to balance tracking after Venoki as base fee and blob fee are
transferred to it. The blob fee is subtracted from sender's balance added to
ronin treasury's balance in buyGas which is before the CaptureStart hook. So we
need to fix these balances up to get the correct balance before the transaction
happens.

As system transaction has 0 gas price, it does not pass the check that gas price
must be greater or equal to base fee when base fee is not 0. Skip gas check for
system transaction in TransitionDb, system transaction will go through
TransitionDb only in tracing path not in normal transaction processing path.
Add ronin treasury to balance tracking after Venoki as base fee and blob fee are
transferred to it. The blob fee is subtracted from sender's balance added to
ronin treasury's balance in buyGas which is before the CaptureStart hook. So we
need to fix these balances up to get the correct balance before the transaction
happens.
@minh-bq minh-bq merged commit 928de3d into axieinfinity:blob-transaction-v2 Sep 11, 2024
1 check passed
@minh-bq minh-bq deleted the fix/prestate-tracer branch September 11, 2024 04:39
minh-bq added a commit that referenced this pull request Sep 16, 2024
…565)

* core: skip gas check for system transaction when tracing

As system transaction has 0 gas price, it does not pass the check that gas price
must be greater or equal to base fee when base fee is not 0. Skip gas check for
system transaction in TransitionDb, system transaction will go through
TransitionDb only in tracing path not in normal transaction processing path.

* eth/tracers: fix balance tracking in prestate tracer after Venoki

Add ronin treasury to balance tracking after Venoki as base fee and blob fee are
transferred to it. The blob fee is subtracted from sender's balance added to
ronin treasury's balance in buyGas which is before the CaptureStart hook. So we
need to fix these balances up to get the correct balance before the transaction
happens.
minh-bq added a commit that referenced this pull request Sep 16, 2024
…565)

* core: skip gas check for system transaction when tracing

As system transaction has 0 gas price, it does not pass the check that gas price
must be greater or equal to base fee when base fee is not 0. Skip gas check for
system transaction in TransitionDb, system transaction will go through
TransitionDb only in tracing path not in normal transaction processing path.

* eth/tracers: fix balance tracking in prestate tracer after Venoki

Add ronin treasury to balance tracking after Venoki as base fee and blob fee are
transferred to it. The blob fee is subtracted from sender's balance added to
ronin treasury's balance in buyGas which is before the CaptureStart hook. So we
need to fix these balances up to get the correct balance before the transaction
happens.
andicrypt pushed a commit to andicrypt/ronin that referenced this pull request Sep 24, 2024
…xieinfinity#565)

* core: skip gas check for system transaction when tracing

As system transaction has 0 gas price, it does not pass the check that gas price
must be greater or equal to base fee when base fee is not 0. Skip gas check for
system transaction in TransitionDb, system transaction will go through
TransitionDb only in tracing path not in normal transaction processing path.

* eth/tracers: fix balance tracking in prestate tracer after Venoki

Add ronin treasury to balance tracking after Venoki as base fee and blob fee are
transferred to it. The blob fee is subtracted from sender's balance added to
ronin treasury's balance in buyGas which is before the CaptureStart hook. So we
need to fix these balances up to get the correct balance before the transaction
happens.
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants