From d58a30b3de19469465bc317ace25c9df9c78cde3 Mon Sep 17 00:00:00 2001 From: Emilia Hane Date: Sat, 14 Jan 2023 18:29:03 +0100 Subject: [PATCH] fixup! Store orphan block roots --- beacon_node/beacon_chain/src/migrate.rs | 2 +- beacon_node/store/src/hot_cold_store.rs | 4 ++-- beacon_node/store/src/lib.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/beacon_node/beacon_chain/src/migrate.rs b/beacon_node/beacon_chain/src/migrate.rs index 4aa55f404..8fb00c105 100644 --- a/beacon_node/beacon_chain/src/migrate.rs +++ b/beacon_node/beacon_chain/src/migrate.rs @@ -573,7 +573,7 @@ impl, Cold: ItemStore> BackgroundMigrator, Cold: ItemStore> HotColdDB key_value_batch.push(KeyValueStoreOp::DeleteKey(key)); } - StoreOp::PutOrphanedBlobs(block_root) => { + StoreOp::PutOrphanedBlobsKey(block_root) => { let db_key = get_key_for_col(DBColumn::BeaconBlobOrphan.into(), block_root.as_bytes()); key_value_batch.push(KeyValueStoreOp::PutKeyValue(db_key, [].into())); @@ -869,7 +869,7 @@ impl, Cold: ItemStore> HotColdDB StoreOp::DeleteExecutionPayload(_) => (), - StoreOp::PutOrphanedBlobs(_) => (), + StoreOp::PutOrphanedBlobsKey(_) => (), } } diff --git a/beacon_node/store/src/lib.rs b/beacon_node/store/src/lib.rs index 7d244f5ae..b30f41cb2 100644 --- a/beacon_node/store/src/lib.rs +++ b/beacon_node/store/src/lib.rs @@ -158,7 +158,7 @@ pub enum StoreOp<'a, E: EthSpec> { PutBlock(Hash256, Arc>), PutState(Hash256, &'a BeaconState), PutBlobs(Hash256, Arc>), - PutOrphanedBlobs(Hash256), + PutOrphanedBlobsKey(Hash256), PutStateSummary(Hash256, HotStateSummary), PutStateTemporaryFlag(Hash256), DeleteStateTemporaryFlag(Hash256),