fix(sims): Use liveness matrix for validator sign status in sims (21952) (#23952)

Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
This commit is contained in:
Alexander Peters
2025-03-10 12:39:23 -04:00
committed by GitHub
co-authored by Alex | Interchain Labs
parent 9d04acb366
commit 011d795eb0
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -149,10 +149,13 @@ func RandomRequestFinalizeBlock(
signed = false
}
var commitStatus cmtproto.BlockIDFlag
if signed {
event("begin_block", "signing", "signed")
commitStatus = cmtproto.BlockIDFlagCommit
} else {
event("begin_block", "signing", "missed")
commitStatus = cmtproto.BlockIDFlagAbsent
}
pubkey, err := cryptoenc.PubKeyFromProto(mVal.val.PubKey)
@@ -165,7 +168,7 @@ func RandomRequestFinalizeBlock(
Address: pubkey.Address(),
Power: mVal.val.Power,
},
BlockIdFlag: cmtproto.BlockIDFlagCommit,
BlockIdFlag: commitStatus,
}
}