Skip to content

Commit 26118a4

Browse files
committed
Print full hash/root in several places
1 parent 71c670b commit 26118a4

File tree

1 file changed

+15
-15
lines changed
  • beacon_node/execution_layer/src

1 file changed

+15
-15
lines changed

beacon_node/execution_layer/src/lib.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ impl<T: EthSpec> ExecutionLayer<T> {
609609
"Requesting blinded header from connected builder";
610610
"slot" => ?slot,
611611
"pubkey" => ?pubkey,
612-
"parent_hash" => ?parent_hash,
612+
"parent_hash" => %parent_hash,
613613
);
614614

615615
// Wait for the builder *and* local EL to produce a payload (or return an error).
@@ -676,7 +676,7 @@ impl<T: EthSpec> ExecutionLayer<T> {
676676
info!(
677677
self.log(),
678678
"Received local and builder payloads";
679-
"relay_block_hash" => ?header.block_hash(),
679+
"relay_block_hash" => %header.block_hash(),
680680
"local_block_hash" => %local.block_hash(),
681681
"parent_hash" => %parent_hash,
682682
);
@@ -697,7 +697,7 @@ impl<T: EthSpec> ExecutionLayer<T> {
697697
"Builder returned invalid payload";
698698
"info" => "using local payload",
699699
"reason" => %reason,
700-
"relay_block_hash" => ?header.block_hash(),
700+
"relay_block_hash" => %header.block_hash(),
701701
"parent_hash" => %parent_hash,
702702
);
703703
Ok(local)
@@ -710,7 +710,7 @@ impl<T: EthSpec> ExecutionLayer<T> {
710710
info!(
711711
self.log(),
712712
"Received builder payload with local error";
713-
"relay_block_hash" => ?header.block_hash(),
713+
"relay_block_hash" => %header.block_hash(),
714714
"local_error" => ?local_error,
715715
"parent_hash" => %parent_hash,
716716
);
@@ -731,7 +731,7 @@ impl<T: EthSpec> ExecutionLayer<T> {
731731
"Builder returned invalid payload";
732732
"info" => "no local payload either - unable to propose block",
733733
"reason" => %reason,
734-
"relay_block_hash" => ?header.block_hash(),
734+
"relay_block_hash" => %header.block_hash(),
735735
"parent_hash" => %parent_hash,
736736
);
737737
Err(Error::CannotProduceHeader)
@@ -846,7 +846,7 @@ impl<T: EthSpec> ExecutionLayer<T> {
846846
"suggested_fee_recipient" => ?suggested_fee_recipient,
847847
"prev_randao" => ?prev_randao,
848848
"timestamp" => timestamp,
849-
"parent_hash" => ?parent_hash,
849+
"parent_hash" => %parent_hash,
850850
);
851851
self.engine()
852852
.request(|engine| async move {
@@ -963,8 +963,8 @@ impl<T: EthSpec> ExecutionLayer<T> {
963963
trace!(
964964
self.log(),
965965
"Issuing engine_newPayload";
966-
"parent_hash" => ?execution_payload.parent_hash,
967-
"block_hash" => ?execution_payload.block_hash,
966+
"parent_hash" => %execution_payload.parent_hash,
967+
"block_hash" => %execution_payload.block_hash,
968968
"block_number" => execution_payload.block_number,
969969
);
970970

@@ -1035,7 +1035,7 @@ impl<T: EthSpec> ExecutionLayer<T> {
10351035
self.log(),
10361036
"Beacon proposer found";
10371037
"payload_attributes" => ?proposer.payload_attributes,
1038-
"head_block_root" => ?head_block_root,
1038+
"head_block_root" => %head_block_root,
10391039
"slot" => current_slot,
10401040
"validator_index" => proposer.validator_index,
10411041
);
@@ -1072,9 +1072,9 @@ impl<T: EthSpec> ExecutionLayer<T> {
10721072
trace!(
10731073
self.log(),
10741074
"Issuing engine_forkchoiceUpdated";
1075-
"finalized_block_hash" => ?finalized_block_hash,
1076-
"justified_block_hash" => ?justified_block_hash,
1077-
"head_block_hash" => ?head_block_hash,
1075+
"finalized_block_hash" => %finalized_block_hash,
1076+
"justified_block_hash" => %justified_block_hash,
1077+
"head_block_hash" => %head_block_hash,
10781078
);
10791079

10801080
let next_slot = current_slot + 1;
@@ -1237,9 +1237,9 @@ impl<T: EthSpec> ExecutionLayer<T> {
12371237
info!(
12381238
self.log(),
12391239
"Found terminal block hash";
1240-
"terminal_block_hash_override" => ?spec.terminal_block_hash,
1240+
"terminal_block_hash_override" => %spec.terminal_block_hash,
12411241
"terminal_total_difficulty" => ?spec.terminal_total_difficulty,
1242-
"block_hash" => ?hash,
1242+
"block_hash" => %hash,
12431243
);
12441244
}
12451245

@@ -1449,7 +1449,7 @@ impl<T: EthSpec> ExecutionLayer<T> {
14491449
debug!(
14501450
self.log(),
14511451
"Sending block to builder";
1452-
"root" => ?block_root,
1452+
"root" => %block_root,
14531453
);
14541454

14551455
if let Some(builder) = self.builder() {

0 commit comments

Comments
 (0)