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:
co-authored by
Alex | Interchain Labs
parent
9d04acb366
commit
011d795eb0
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user