99d2c33387
## Issue Addressed
This PR fixes the unnecessary `WARN Single block lookup failed` messages described here:
https://github.com/sigp/lighthouse/pull/2866#issuecomment-1008442640
## Proposed Changes
Add a new cache to the `BeaconChain` that tracks the block roots of blocks from before finalization. These could be blocks from the canonical chain (which might need to be read from disk), or old pre-finalization blocks that have been forked out.
The cache also stores a set of block roots for in-progress single block lookups, which duplicates some of the information from sync's `single_block_lookups` hashmap:
|
||
---|---|---|
.. | ||
attestation_production.rs | ||
attestation_verification.rs | ||
block_verification.rs | ||
main.rs | ||
merge.rs | ||
op_verification.rs | ||
store_tests.rs | ||
sync_committee_verification.rs | ||
tests.rs |