You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The BlockchainProvider providers all provider trait impls and is responsible for fetching requested data such as blocks
Currently this supports access to the blockchaintree:
with #8745 we need to give it access to the in memory state as well.
we need to track:
highest block on disk
current head (in tree)
pending block (current head + 1, if we have the corresponding payload)
Ideally this is some kind of Arc<Rwlock where the internals track the height -> State and state includes block+receipts+state after the block.
this should be an object safe trait that gives access to the in memory blocks and state, the tree service will populate this type with the canonical chain after FCU and is effectively something like
scaffold trait and type similar to Treeviewer that can provide the range of the canonical chain that is currently stored in memory so the Blockchainprovider knows where to fetch things from
The text was updated successfully, but these errors were encountered:
Blocked by #8745
The
BlockchainProvider
providers all provider trait impls and is responsible for fetching requested data such as blocksCurrently this supports access to the blockchaintree:
reth/crates/storage/provider/src/providers/mod.rs
Lines 72 to 73 in 892d5dd
with #8745 we need to give it access to the in memory state as well.
we need to track:
Ideally this is some kind of
Arc<Rwlock
where the internals track the height -> State and state includes block+receipts+state after the block.this should be an object safe trait that gives access to the in memory blocks and state, the tree service will populate this type with the canonical chain after FCU and is effectively something like
very similar to what we have in anvil:
https://github.com/foundry-rs/foundry/blob/82ff8ee338818e6a6dc356e4c72ab72d31965375/crates/anvil/src/eth/backend/mem/storage.rs#L212-L230
TODO
The text was updated successfully, but these errors were encountered: