diff --git a/beacon_node/beacon_chain/src/historical_blocks.rs b/beacon_node/beacon_chain/src/historical_blocks.rs index 8cb13eab2..cc45a6bb9 100644 --- a/beacon_node/beacon_chain/src/historical_blocks.rs +++ b/beacon_node/beacon_chain/src/historical_blocks.rs @@ -68,7 +68,7 @@ impl BeaconChain { // Take all blocks with slots less than the oldest block slot. let num_relevant = - blocks.partition_point(|block| block.slot() < acompare_and_set_anchor_infonchor_info.oldest_block_slot); + blocks.partition_point(|block| block.slot() < anchor_info.oldest_block_slot); let blocks_to_import = &blocks .get(..num_relevant) .ok_or(HistoricalBlockError::IndexOutOfBounds)?; diff --git a/beacon_node/store/src/hot_cold_store.rs b/beacon_node/store/src/hot_cold_store.rs index 1b579be5e..3df7d337e 100644 --- a/beacon_node/store/src/hot_cold_store.rs +++ b/beacon_node/store/src/hot_cold_store.rs @@ -130,6 +130,7 @@ impl HotColdDB, MemoryStore> { let db = HotColdDB { split: RwLock::new(Split::default()), anchor_info: RwLock::new(None), + blob_info: RwLock::new(None), cold_db: MemoryStore::open(), hot_db: MemoryStore::open(), block_cache: Mutex::new(LruCache::new(config.block_cache_size)), @@ -164,6 +165,7 @@ impl HotColdDB, LevelDB> { let mut db = HotColdDB { split: RwLock::new(Split::default()), anchor_info: RwLock::new(None), + blob_info: RwLock::new(None), cold_db: LevelDB::open(cold_path)?, hot_db: LevelDB::open(hot_path)?, block_cache: Mutex::new(LruCache::new(config.block_cache_size)),