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

fix: do not force precompile address access in case of txn reversion #488

Merged
merged 2 commits into from
Aug 13, 2024

Conversation

Nashtare
Copy link
Collaborator

The tracers only include the precompile addresses as hash nodes when a transaction reverted, which gets the decoder to fail building a minimal trie view because it is missing some account info (as these are flagged as state_accesses.

This is testable on block 444 of John's test chain (although the txn is a spam transaction, so I didn't include it in the test cases for CI runtime's sakes, as it takes ~89M CPU cycles).

@Nashtare Nashtare added the bug Something isn't working label Aug 13, 2024
@Nashtare Nashtare self-assigned this Aug 13, 2024
@Nashtare Nashtare requested a review from muursh as a code owner August 13, 2024 17:59
@github-actions github-actions bot added the crate: trace_decoder Anything related to the trace_decoder crate. label Aug 13, 2024
@Nashtare Nashtare merged commit c46097a into develop Aug 13, 2024
15 checks passed
@Nashtare Nashtare deleted the precompile_oog branch August 13, 2024 21:21
atanmarko pushed a commit that referenced this pull request Aug 14, 2024
0xaatif pushed a commit that referenced this pull request Aug 14, 2024
0xaatif pushed a commit that referenced this pull request Aug 14, 2024
0xaatif added a commit that referenced this pull request Aug 15, 2024
* mark: 0xaatif/refactor-trace-decoder-decoding

* refactor: remove inappropriate static methods

* refactor: remove inappropriate method

* refactor: remove TraceParsingErrorReason

* refactor: remove LocatedError

* refactor: remove EMPTY_ACCOUNT_BYTES_RLPED

* refactor: remove update_val_if_some

* refactor: impl Display for TrieType

* wibble

* refactor: inline TraceParsingResult

* wibble

* wibble: order

* refactor: remove unused variable

* wibble: inline TrieRoots etc

* wibble

* review: WithHash -> CustomFmt<T>

* mark: 0xaatif/typed-backend3

* refactor: trace_decoder::typed_mpt::TriePath -> TrieKey

* refactor: path: TriePath -> key: TrieKey

* refactor: use typed_mpt in the backend

* tweaks

* refactor: remove allow(unused)

* refactor: remove dead methods

* bump

* fix: do not force precompile address access in case of txn reversion (#488)

* Fix precompile insertion in state trie

* Reword

* fix indexing in error message (#490)

* refactor: more path -> key

---------

Co-authored-by: Robin Salen <[email protected]>
@Nashtare Nashtare added this to the Testing and Validation milestone Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working crate: trace_decoder Anything related to the trace_decoder crate.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants