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 txn indexing in error message #490

Merged
merged 1 commit into from
Aug 13, 2024
Merged

Fix txn indexing in error message #490

merged 1 commit into from
Aug 13, 2024

Conversation

Nashtare
Copy link
Collaborator

We were picking the already incremented txn_idx in the error msg, which was causing discrepancies in error messages between expected and actual failing txn, cf #421 which caused unnecessary headache.

@Nashtare Nashtare added this to the x Misc. milestone 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 21:19
@github-actions github-actions bot added the crate: trace_decoder Anything related to the trace_decoder crate. label Aug 13, 2024
@Nashtare Nashtare enabled auto-merge (squash) August 13, 2024 22:00
@Nashtare Nashtare merged commit c468927 into develop Aug 13, 2024
15 checks passed
@Nashtare Nashtare deleted the fix/indexing branch August 13, 2024 22:00
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
@BGluth
Copy link
Member

BGluth commented Aug 14, 2024

Such a brutal bug, thanks for getting this!

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crate: trace_decoder Anything related to the trace_decoder crate.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants