Skip to content

Commit 9d85619

Browse files
committed
add log
1 parent 016e58e commit 9d85619

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

beacon_node/beacon_chain/src/historical_blocks.rs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::data_availability_checker::AvailableBlock;
22
use crate::{metrics, BeaconChain, BeaconChainTypes};
33
use itertools::Itertools;
4-
use slog::debug;
4+
use slog::{debug, info};
55
use state_processing::{
66
per_block_processing::ParallelSignatureSets,
77
signature_sets::{block_proposal_signature_set_from_parts, Error as SignatureSetError},
@@ -137,6 +137,13 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
137137
// If prune-payloads is set to false, store the block which includes the execution payload
138138
self.store
139139
.block_as_kv_store_ops(&block_root, (*block).clone(), &mut hot_batch)?;
140+
141+
info!(
142+
self.log,
143+
"Storing full block with execution payload";
144+
"block_root" => ?block_root,
145+
"slot" => block.slot(),
146+
);
140147
} else {
141148
let blinded_block = block.clone_as_blinded();
142149
// Store block in the hot database without payload.
@@ -145,6 +152,13 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
145152
&blinded_block,
146153
&mut hot_batch,
147154
);
155+
156+
info!(
157+
self.log,
158+
"Does not store execution payload";
159+
"block_root" => ?block_root,
160+
"slot" => block.slot(),
161+
);
148162
}
149163
// Store the blobs too
150164
if let Some(blobs) = maybe_blobs {

0 commit comments

Comments
 (0)