@@ -4,7 +4,6 @@ use eth2::lighthouse::StandardAttestationRewards;
44use eth2:: types:: ValidatorId ;
55use safe_arith:: SafeArith ;
66use serde_utils:: quoted_u64:: Quoted ;
7- use slog:: debug;
87use state_processing:: common:: base:: { self , SqrtTotalActiveBalance } ;
98use state_processing:: per_epoch_processing:: altair:: {
109 process_inactivity_updates_slow, process_justification_and_finalization,
@@ -29,6 +28,7 @@ use store::consts::altair::{
2928 PARTICIPATION_FLAG_WEIGHTS , TIMELY_HEAD_FLAG_INDEX , TIMELY_SOURCE_FLAG_INDEX ,
3029 TIMELY_TARGET_FLAG_INDEX ,
3130} ;
31+ use tracing:: debug;
3232use types:: consts:: altair:: WEIGHT_DENOMINATOR ;
3333use types:: { BeaconState , Epoch , EthSpec , RelativeEpoch } ;
3434
@@ -38,7 +38,11 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
3838 epoch : Epoch ,
3939 validators : Vec < ValidatorId > ,
4040 ) -> Result < StandardAttestationRewards , BeaconChainError > {
41- debug ! ( self . log, "computing attestation rewards" ; "epoch" => epoch, "validator_count" => validators. len( ) ) ;
41+ debug ! (
42+ %epoch,
43+ validator_count = validators. len( ) ,
44+ "computing attestation rewards"
45+ ) ;
4246
4347 // Get state
4448 let state_slot = ( epoch + 1 ) . end_slot ( T :: EthSpec :: slots_per_epoch ( ) ) ;
@@ -214,10 +218,9 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
214218 // Return 0s for unknown/inactive validator indices.
215219 let Ok ( validator) = state. get_validator ( validator_index) else {
216220 debug ! (
217- self . log,
218- "No rewards for inactive/unknown validator" ;
219- "index" => validator_index,
220- "epoch" => previous_epoch
221+ index = validator_index,
222+ epoch = %previous_epoch,
223+ "No rewards for inactive/unknown validator"
221224 ) ;
222225 total_rewards. push ( TotalAttestationRewards {
223226 validator_index : validator_index as u64 ,
0 commit comments