1
1
use crate :: data_availability_checker:: AvailableBlock ;
2
2
use crate :: { metrics, BeaconChain , BeaconChainTypes } ;
3
3
use itertools:: Itertools ;
4
- use slog:: debug;
4
+ use slog:: { debug, info } ;
5
5
use state_processing:: {
6
6
per_block_processing:: ParallelSignatureSets ,
7
7
signature_sets:: { block_proposal_signature_set_from_parts, Error as SignatureSetError } ,
@@ -137,6 +137,13 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
137
137
// If prune-payloads is set to false, store the block which includes the execution payload
138
138
self . store
139
139
. 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
+ ) ;
140
147
} else {
141
148
let blinded_block = block. clone_as_blinded ( ) ;
142
149
// Store block in the hot database without payload.
@@ -145,6 +152,13 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
145
152
& blinded_block,
146
153
& mut hot_batch,
147
154
) ;
155
+
156
+ info ! (
157
+ self . log,
158
+ "Does not store execution payload" ;
159
+ "block_root" => ?block_root,
160
+ "slot" => block. slot( ) ,
161
+ ) ;
148
162
}
149
163
// Store the blobs too
150
164
if let Some ( blobs) = maybe_blobs {
0 commit comments