@@ -99,28 +99,38 @@ iterator get_attesting_indices*(
9999 let
100100 slot =
101101 check_attestation_slot_target (attestation.data).valueOr:
102- warn " Invalid attestation slot"
102+ warn " Invalid attestation slot in trusted attestation" ,
103+ attestation = shortLog (attestation.data)
103104 doAssert strictVerification notin dag.updateFlags
104105 break
105106 blck =
106107 dag.getBlockRef (attestation.data.beacon_block_root).valueOr:
107- # Attestation block unknown
108+ # Attestation block unknown - this is fairly common because we
109+ # discard alternative histories on restart
108110 break
109111 target =
110112 blck.atCheckpoint (attestation.data.target).valueOr:
111- warn " Invalid attestation target"
113+ warn " Unknown attestation target in trusted attestation" ,
114+ blck = shortLog (blck),
115+ attestation = shortLog (attestation.data)
112116 doAssert strictVerification notin dag.updateFlags
113117 break
114118 shufflingRef =
115119 dag.getShufflingRef (target.blck, target.slot.epoch, false ).valueOr:
116- warn " Attestation shuffling not found"
120+ warn " Attestation shuffling not found" ,
121+ blck = shortLog (blck),
122+ attestation = shortLog (attestation.data)
123+
117124 doAssert strictVerification notin dag.updateFlags
118125 break
119126
120127 committeesPerSlot = get_committee_count_per_slot (shufflingRef)
121128 committeeIndex =
122129 CommitteeIndex .init (attestation.data.index, committeesPerSlot).valueOr:
123- warn " Unexpected committee index in block attestation"
130+ warn " Unexpected committee index in trusted attestation" ,
131+ blck = shortLog (blck),
132+ attestation = shortLog (attestation.data)
133+
124134 doAssert strictVerification notin dag.updateFlags
125135 break
126136
0 commit comments