mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-07 11:32:21 +00:00
fixup! Store orphan block roots
This commit is contained in:
parent
6346c30158
commit
d58a30b3de
@ -573,7 +573,7 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> BackgroundMigrator<E, Ho
|
|||||||
StoreOp::DeleteBlock(block_root),
|
StoreOp::DeleteBlock(block_root),
|
||||||
StoreOp::DeleteExecutionPayload(block_root),
|
StoreOp::DeleteExecutionPayload(block_root),
|
||||||
StoreOp::DeleteBlobs(block_root),
|
StoreOp::DeleteBlobs(block_root),
|
||||||
StoreOp::PutOrphanedBlobs(block_root),
|
StoreOp::PutOrphanedBlobsKey(block_root),
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
.chain(
|
.chain(
|
||||||
|
@ -823,7 +823,7 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> HotColdDB<E, Hot, Cold>
|
|||||||
key_value_batch.push(KeyValueStoreOp::DeleteKey(key));
|
key_value_batch.push(KeyValueStoreOp::DeleteKey(key));
|
||||||
}
|
}
|
||||||
|
|
||||||
StoreOp::PutOrphanedBlobs(block_root) => {
|
StoreOp::PutOrphanedBlobsKey(block_root) => {
|
||||||
let db_key =
|
let db_key =
|
||||||
get_key_for_col(DBColumn::BeaconBlobOrphan.into(), block_root.as_bytes());
|
get_key_for_col(DBColumn::BeaconBlobOrphan.into(), block_root.as_bytes());
|
||||||
key_value_batch.push(KeyValueStoreOp::PutKeyValue(db_key, [].into()));
|
key_value_batch.push(KeyValueStoreOp::PutKeyValue(db_key, [].into()));
|
||||||
@ -869,7 +869,7 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> HotColdDB<E, Hot, Cold>
|
|||||||
|
|
||||||
StoreOp::DeleteExecutionPayload(_) => (),
|
StoreOp::DeleteExecutionPayload(_) => (),
|
||||||
|
|
||||||
StoreOp::PutOrphanedBlobs(_) => (),
|
StoreOp::PutOrphanedBlobsKey(_) => (),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -158,7 +158,7 @@ pub enum StoreOp<'a, E: EthSpec> {
|
|||||||
PutBlock(Hash256, Arc<SignedBeaconBlock<E>>),
|
PutBlock(Hash256, Arc<SignedBeaconBlock<E>>),
|
||||||
PutState(Hash256, &'a BeaconState<E>),
|
PutState(Hash256, &'a BeaconState<E>),
|
||||||
PutBlobs(Hash256, Arc<BlobsSidecar<E>>),
|
PutBlobs(Hash256, Arc<BlobsSidecar<E>>),
|
||||||
PutOrphanedBlobs(Hash256),
|
PutOrphanedBlobsKey(Hash256),
|
||||||
PutStateSummary(Hash256, HotStateSummary),
|
PutStateSummary(Hash256, HotStateSummary),
|
||||||
PutStateTemporaryFlag(Hash256),
|
PutStateTemporaryFlag(Hash256),
|
||||||
DeleteStateTemporaryFlag(Hash256),
|
DeleteStateTemporaryFlag(Hash256),
|
||||||
|
Loading…
Reference in New Issue
Block a user