Skip to content

Conversation

@joshieDo
Copy link
Contributor

@joshieDo joshieDo commented Nov 26, 2024

closes #84 and closes #72

Overrides eth_getProof as to enable withdrawals

//! - `eth_getProof` will _ONLY_ return the storage proofs _WITHOUT_ an account proof _IF_ targeting
//!   the withdrawal contract. Otherwise, it fallbacks to default behaviour.

@joshieDo joshieDo added C-bug Something isn't working A-node labels Nov 26, 2024
@joshieDo joshieDo requested a review from rkrasiuk November 26, 2024 13:09
@joshieDo joshieDo changed the title feat: override eth_getProof to enable withdrawals fix: override eth_getProof to enable withdrawals Nov 26, 2024

// If we are targeting the withdrawal contract, then we only need to provide the storage
// proofs for withdrawal.
if address == WITHDRAWAL_CONTRACT {
Copy link
Member

Choose a reason for hiding this comment

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

is this something we want to bake into op-reth as well?

Copy link
Contributor

@onbjerg onbjerg left a comment

Choose a reason for hiding this comment

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

I'd also like an e2e test, one for proving the withdrawal contract, one for proving something that isn't the withdrawal contract (to ensure the fallback works through refactors e.g.)

can take a look at our current e2e tests

@joshieDo joshieDo marked this pull request as draft November 26, 2024 15:07
@joshieDo joshieDo marked this pull request as ready for review November 26, 2024 15:18
@joshieDo joshieDo mentioned this pull request Nov 26, 2024
Copy link
Contributor

@onbjerg onbjerg left a comment

Choose a reason for hiding this comment

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

looks good to me, great work bud

@onbjerg onbjerg merged commit b35e5a9 into main Nov 26, 2024
14 checks passed
@onbjerg onbjerg deleted the joshie/override branch November 26, 2024 18:04
onbjerg pushed a commit that referenced this pull request Nov 26, 2024
introduces
[StorageRootProvider::storage_multiproof](paradigmxyz/reth#12879)
that can be used on #97
0xtinkle pushed a commit to 0xtinkle/traverse that referenced this pull request Apr 3, 2025
introduces
[StorageRootProvider::storage_multiproof](paradigmxyz/reth#12879)
that can be used on ithacaxyz/odyssey#97
0xtinkle added a commit to 0xtinkle/traverse that referenced this pull request Apr 3, 2025
introduces
[StorageRootProvider::storage_multiproof](paradigmxyz/reth#12879)
that can be used on ithacaxyz/odyssey#97
0xtinkle added a commit to 0xtinkle/traverse that referenced this pull request Apr 3, 2025
introduces
[StorageRootProvider::storage_multiproof](paradigmxyz/reth#12879)
that can be used on ithacaxyz/odyssey#97
mev-smithxbg added a commit to mev-smithxbg/odyssey that referenced this pull request Sep 28, 2025
introduces
[StorageRootProvider::storage_multiproof](paradigmxyz/reth#12879)
that can be used on ithacaxyz/odyssey#97
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-node C-bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Swap on bridge issue Withdrawal proof cache

4 participants