Structsยง
- Block
Cache ๐ - A cached block: header + body, indexed by number and hash.
- Cached
Block ๐ - NetConfig ๐
- Resolved network configuration passed to
run_p2p_network. - P2pProxy
Args ๐ - Request
Stats ๐ - Shared request counters for periodic stats logging.
Enumsยง
- Fetch
Request ๐ - Messages from the request handler to the single block-fetcher service.
Constantsยง
- CACHE_
CAPACITY ๐ - 3 hrs of blocks at 500ms block time.
- HEADER_
BATCH_ ๐SIZE
Functionsยง
- fetch_
and_ ๐cache_ header_ batch - fetch_
and_ ๐cache_ header_ by_ hash - fetch_
and_ ๐cache_ header_ by_ number - fetch_
and_ ๐cache_ headers - fetch_
body_ ๐by_ hash - requested_
header_ ๐numbers - resolve_
bodies ๐ - Resolve a GetBlockBodies request from cache, fetching missing blocks from RPC as needed.
- resolve_
headers ๐ - Resolve a GetBlockHeaders request from cache, fetching missing blocks from RPC as needed.
- resolve_
start_ ๐block_ number - run_
fetcher_ ๐service - Single block-fetcher service that owns the cache and handles all fetch requests.
- run_
p2p_ ๐network - Launch the P2P network and handle incoming eth requests.
Type Aliasesยง
- Tempo
NetPrimitives ๐ - Tempo-specific network primitives for the proxy node.
- Tempo
RpcBlock ๐