@@ -28,9 +28,7 @@ func (k *Keeper) recordFinalizationEvidence(
2828 ctx sdk.Context ,
2929 actionID string ,
3030 subjectAddress string ,
31- attemptedFinalizerAddress string ,
32- expectedFinalizerAddresses []string ,
33- reason string ,
31+ top10ValidatorAddresses []string ,
3432 evidenceType audittypes.EvidenceType ,
3533) (uint64 , error ) {
3634 if k .auditKeeper == nil {
@@ -49,15 +47,15 @@ func (k *Keeper) recordFinalizationEvidence(
4947 switch evidenceType {
5048 case audittypes .EvidenceType_EVIDENCE_TYPE_ACTION_FINALIZATION_SIGNATURE_FAILURE :
5149 metaJSON , err := json .Marshal (audittypes.ActionFinalizationSignatureFailureEvidenceMetadata {
52- Top_10ValidatorAddresses : expectedFinalizerAddresses ,
50+ Top_10ValidatorAddresses : top10ValidatorAddresses ,
5351 })
5452 if err != nil {
5553 return 0 , fmt .Errorf ("marshal evidence metadata: %w" , err )
5654 }
5755 metadataJSON = string (metaJSON )
5856 case audittypes .EvidenceType_EVIDENCE_TYPE_ACTION_FINALIZATION_NOT_IN_TOP_10 :
5957 metaJSON , err := json .Marshal (audittypes.ActionFinalizationNotInTop10EvidenceMetadata {
60- Top_10ValidatorAddresses : expectedFinalizerAddresses ,
58+ Top_10ValidatorAddresses : top10ValidatorAddresses ,
6159 })
6260 if err != nil {
6361 return 0 , fmt .Errorf ("marshal evidence metadata: %w" , err )
@@ -82,7 +80,7 @@ func (k *Keeper) recordFinalizationRejection(
8280 action * actiontypes.Action ,
8381 attemptedFinalizerAddress string ,
8482 reason string ,
85- expectedFinalizerAddresses []string ,
83+ top10ValidatorAddresses []string ,
8684 evidenceType audittypes.EvidenceType ,
8785) uint64 {
8886 if action == nil {
@@ -97,9 +95,7 @@ func (k *Keeper) recordFinalizationRejection(
9795 ctx ,
9896 action .ActionID ,
9997 subjectAddress ,
100- attemptedFinalizerAddress ,
101- expectedFinalizerAddresses ,
102- reason ,
98+ top10ValidatorAddresses ,
10399 evidenceType ,
104100 ); err != nil {
105101 k .Logger ().Error (
@@ -151,15 +147,15 @@ func (k *Keeper) RecordFinalizationNotInTop10(
151147 ctx sdk.Context ,
152148 action * actiontypes.Action ,
153149 attemptedFinalizerAddress string ,
154- expectedFinalizerAddresses []string ,
150+ top10ValidatorAddresses []string ,
155151 reason string ,
156152) uint64 {
157153 return k .recordFinalizationRejection (
158154 ctx ,
159155 action ,
160156 attemptedFinalizerAddress ,
161157 reason ,
162- expectedFinalizerAddresses ,
158+ top10ValidatorAddresses ,
163159 audittypes .EvidenceType_EVIDENCE_TYPE_ACTION_FINALIZATION_NOT_IN_TOP_10 ,
164160 )
165161}
0 commit comments