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: StorageTrie, ReceiptTrie and TransactionTrie shouldn't use TypedMpt #446

Merged
merged 4 commits into from
Jul 25, 2024

Conversation

0xaatif
Copy link
Contributor

@0xaatif 0xaatif commented Jul 25, 2024

#413

Snippets from 0xaatif/typed-backend2 that fix the bug.
The basic change is

struct FooTrie {
-    typed: TypedMpt<Vec<u8>>,
+    untyped: HashedPartialTrie,
}

The following oracle passes

cargo build --release 

RUST_LOG=info ./target/release/leader \
    --runtime in-memory \
    --load-strategy on-demand rpc \
    --rpc-type native \
    --rpc-url "$RPC_URL" \
    --block-interval 19807080..19807081 \
    --backoff 1000 \
    --max-retries 1000

@github-actions github-actions bot added the crate: trace_decoder Anything related to the trace_decoder crate. label Jul 25, 2024
@0xaatif 0xaatif marked this pull request as ready for review July 25, 2024 12:12
@0xaatif 0xaatif self-assigned this Jul 25, 2024
@0xaatif 0xaatif added this to the Type 2 - Q3 2024 milestone Jul 25, 2024
@0xaatif 0xaatif linked an issue Jul 25, 2024 that may be closed by this pull request
@0xaatif 0xaatif changed the title fix: StorageTrie, ReceiptTrie and TransactionTrie shouldn't used TypedMpt fix: StorageTrie, ReceiptTrie and TransactionTrie shouldn't use TypedMpt Jul 25, 2024
Copy link
Collaborator

@Nashtare Nashtare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!
Also confirming it parsed properly 52 mainnet blocks.

@0xaatif 0xaatif merged commit 0563597 into develop Jul 25, 2024
14 checks passed
@0xaatif 0xaatif deleted the 0xaatif/fix-bad-storage-tries branch July 25, 2024 14:13
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.

bug(zero-bin): regression with native tracer
2 participants