Skip to content

Commit

Permalink
Remove PersistedBeaconChain write
Browse files Browse the repository at this point in the history
  • Loading branch information
dapplion committed Dec 24, 2024
1 parent 5ecf9db commit 9ce4b33
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions beacon_node/beacon_chain/src/migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -713,16 +713,6 @@ impl<E: EthSpec, Hot: ItemStore<E>, Cold: ItemStore<E>> BackgroundMigrator<E, Ho
}))
.collect();

// Persist the head in case the process is killed or crashes here. This prevents
// the head tracker reverting after our mutation above.
let persisted_head = PersistedBeaconChain {
_canonical_head_block_root: DUMMY_CANONICAL_HEAD_BLOCK_ROOT,
genesis_block_root,
};
batch.push(StoreOp::KeyValueOp(
persisted_head.as_kv_store_op(BEACON_CHAIN_DB_KEY),
));

// Prune sync committee branches of non-checkpoint canonical finalized blocks
Self::prune_non_checkpoint_sync_committee_branches(&newly_finalized_blocks, &mut batch);
// Prune all payloads of the canonical finalized blocks
Expand Down

0 comments on commit 9ce4b33

Please sign in to comment.