Skip to content

Commit 9ce4b33

Browse files
committed
Remove PersistedBeaconChain write
1 parent 5ecf9db commit 9ce4b33

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

beacon_node/beacon_chain/src/migrate.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -713,16 +713,6 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> BackgroundMigrator<E, Ho
713713
}))
714714
.collect();
715715

716-
// Persist the head in case the process is killed or crashes here. This prevents
717-
// the head tracker reverting after our mutation above.
718-
let persisted_head = PersistedBeaconChain {
719-
_canonical_head_block_root: DUMMY_CANONICAL_HEAD_BLOCK_ROOT,
720-
genesis_block_root,
721-
};
722-
batch.push(StoreOp::KeyValueOp(
723-
persisted_head.as_kv_store_op(BEACON_CHAIN_DB_KEY),
724-
));
725-
726716
// Prune sync committee branches of non-checkpoint canonical finalized blocks
727717
Self::prune_non_checkpoint_sync_committee_branches(&newly_finalized_blocks, &mut batch);
728718
// Prune all payloads of the canonical finalized blocks

0 commit comments

Comments
 (0)