@@ -434,9 +434,8 @@ fn check_epoch_slots_hash_against_bank_status(
434
434
BankStatus :: Frozen ( bank_frozen_hash) => {
435
435
// The epoch slots hash does not match our frozen hash.
436
436
warn ! (
437
- "EpochSlots sample returned slot {} with hash {}, but our version
438
- has hash {:?}" ,
439
- slot, epoch_slots_frozen_hash, bank_frozen_hash
437
+ "EpochSlots sample returned slot {slot} with hash {epoch_slots_frozen_hash}, \
438
+ but our version has hash {bank_frozen_hash:?}",
440
439
) ;
441
440
if !is_popular_pruned {
442
441
// If the slot is not already pruned notify fork choice to mark as invalid
@@ -446,8 +445,8 @@ fn check_epoch_slots_hash_against_bank_status(
446
445
BankStatus :: Dead => {
447
446
// Cluster sample found a hash for our dead slot, we must have the wrong version
448
447
warn ! (
449
- "EpochSlots sample returned slot {} with hash {}, but we marked slot dead" ,
450
- slot, epoch_slots_frozen_hash
448
+ "EpochSlots sample returned slot {slot } with hash {epoch_slots_frozen_hash }, \
449
+ but we marked slot dead" ,
451
450
) ;
452
451
}
453
452
BankStatus :: Unprocessed => {
@@ -456,8 +455,8 @@ fn check_epoch_slots_hash_against_bank_status(
456
455
assert ! ( is_popular_pruned) ;
457
456
// The cluster sample found the troublesome slot which caused this fork to be pruned
458
457
warn ! (
459
- "EpochSlots sample returned slot {slot} with hash {epoch_slots_frozen_hash}, but \
460
- we have pruned it due to incorrect ancestry"
458
+ "EpochSlots sample returned slot {slot} with hash {epoch_slots_frozen_hash}, \
459
+ but we have pruned it due to incorrect ancestry"
461
460
) ;
462
461
}
463
462
}
@@ -644,9 +643,8 @@ fn on_epoch_slots_frozen(
644
643
if let Some ( duplicate_confirmed_hash) = duplicate_confirmed_hash {
645
644
if epoch_slots_frozen_hash != duplicate_confirmed_hash {
646
645
warn ! (
647
- "EpochSlots sample returned slot {} with hash {}, but we already saw \
648
- duplicate confirmation on hash: {:?}",
649
- slot, epoch_slots_frozen_hash, duplicate_confirmed_hash
646
+ "EpochSlots sample returned slot {slot} with hash {epoch_slots_frozen_hash}, \
647
+ but we already saw duplicate confirmation on hash: {duplicate_confirmed_hash:?}",
650
648
) ;
651
649
}
652
650
return vec ! [ ] ;
@@ -778,9 +776,9 @@ fn get_duplicate_confirmed_hash(
778
776
( Some ( local_duplicate_confirmed_hash) , Some ( duplicate_confirmed_hash) ) => {
779
777
if local_duplicate_confirmed_hash != duplicate_confirmed_hash {
780
778
error ! (
781
- "For slot {}, the gossip duplicate confirmed hash {}, is not equal
782
- to the confirmed hash we replayed: {}" ,
783
- slot , duplicate_confirmed_hash , local_duplicate_confirmed_hash
779
+ "For slot {slot }, the gossip duplicate confirmed hash: \
780
+ {duplicate_confirmed_hash} is not equal to the confirmed hash we replayed: \
781
+ { local_duplicate_confirmed_hash}" ,
784
782
) ;
785
783
}
786
784
Some ( local_duplicate_confirmed_hash)
0 commit comments