Sitelet https://github.com/foundry-rs/foundry-core/tree/main/crates/fork-db
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

foundry-fork-db

Fork database used by Foundry.

Note: This crate was previously maintained at foundry-rs/foundry-fork-db.

Provides a shared, caching database layer backed by a remote RPC provider, allowing EVM execution against forked chain state. Built on top of revm.

Features

  • zstd: Enables zstd compression support.

Remote account loading

For RPCs such as Tempo, where eth_getBalance returns a placeholder, use BlockchainDbMeta::with_account_fetch_policy(AccountFetchPolicy::RequireAccountInfo) to require authoritative account data without fallback. The policy is part of cache identity, so incompatible caches are discarded even in offline-start mode.