fixup! Fix regression in DB write atomicity

This commit is contained in:
Emilia Hane 2023-02-07 11:39:52 +01:00
parent bc468b4ce5
commit 6a37e84399
No known key found for this signature in database
GPG Key ID: E73394F9C09206FA
2 changed files with 2 additions and 2 deletions

View File

@ -3034,7 +3034,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
if blobs.blobs.len() > 0 { if blobs.blobs.len() > 0 {
//FIXME(sean) using this for debugging for now //FIXME(sean) using this for debugging for now
info!( info!(
self.log, "Writing blobs to store"; self.log, "Writing blobs to store";
"block_root" => ?block_root "block_root" => ?block_root
); );
ops.push(StoreOp::PutBlobs(block_root, blobs)); ops.push(StoreOp::PutBlobs(block_root, blobs));

View File

@ -1870,7 +1870,7 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> HotColdDB<E, Hot, Cold>
oldest_blob_slot: Some(end_slot + 1), oldest_blob_slot: Some(end_slot + 1),
}, },
)?; )?;
ops.push(StoreOp::PutRawKVStoreOp(update_blob_info)); ops.push(StoreOp::KeyValueOp(update_blob_info));
self.do_atomically(ops)?; self.do_atomically(ops)?;
info!( info!(