Skip to content

Commit

Permalink
Simplify logging
Browse files Browse the repository at this point in the history
  • Loading branch information
chong-he committed Jan 13, 2025
1 parent 0a61483 commit 9492cab
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions beacon_node/beacon_chain/src/historical_blocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,6 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
// If prune-payloads is set to false, store the block which includes the execution payload
self.store
.block_as_kv_store_ops(&block_root, (*block).clone(), &mut hot_batch)?;

info!(
self.log,
"Storing full block with execution payload";
"block_root" => ?block_root,
"slot" => block.slot(),
);
} else {
let blinded_block = block.clone_as_blinded();
// Store block in the hot database without payload.
Expand All @@ -152,14 +145,14 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
&blinded_block,
&mut hot_batch,
);

info!(
self.log,
"Does not store execution payload";
"block_root" => ?block_root,
"slot" => block.slot(),
);
}

info!(
self.log,
"Downloading historical blocks";
"Keep execution payload" => !self.store.get_config().prune_payloads,
);

// Store the blobs too
if let Some(blobs) = maybe_blobs {
new_oldest_blob_slot = Some(block.slot());
Expand Down

0 comments on commit 9492cab

Please sign in to comment.