File tree 2 files changed +19
-0
lines changed
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,22 @@ func logStateTransitionData(b interfaces.ReadOnlyBeaconBlock) error {
69
69
log = log .WithField ("kzgCommitmentCount" , len (kzgs ))
70
70
}
71
71
}
72
+ if b .Version () >= version .Electra {
73
+ eReqs , err := b .Body ().ExecutionRequests ()
74
+ if err != nil {
75
+ log .WithError (err ).Error ("Failed to get execution requests" )
76
+ } else {
77
+ if len (eReqs .Deposits ) > 0 {
78
+ log = log .WithField ("depositRequestCount" , len (eReqs .Deposits ))
79
+ }
80
+ if len (eReqs .Consolidations ) > 0 {
81
+ log = log .WithField ("consolidationRequestCount" , len (eReqs .Consolidations ))
82
+ }
83
+ if len (eReqs .Withdrawals ) > 0 {
84
+ log = log .WithField ("withdrawalRequestCount" , len (eReqs .Withdrawals ))
85
+ }
86
+ }
87
+ }
72
88
log .Info ("Finished applying state transition" )
73
89
return nil
74
90
}
Original file line number Diff line number Diff line change
1
+ ### Added
2
+
3
+ - Log execution requests in each block.
You can’t perform that action at this time.
0 commit comments