Skip to content

Commit

Permalink
fix(sims): Use liveness matrix for val sign status in sims (#21952)
Browse files Browse the repository at this point in the history
  • Loading branch information
alpe authored Sep 27, 2024
1 parent dcf00cf commit 0d9b416
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ Every module contains its own CHANGELOG.md. Please refer to the module you are i
* (sims) [#21613](https://github.com/cosmos/cosmos-sdk/pull/21613) Add sims2 framework and factory methods for simpler message factories in modules

### Bug Fixes

* (sims) [21906](https://github.com/cosmos/cosmos-sdk/pull/21906) Skip sims test when running dry on validators
* (sims) [#21952](https://github.com/cosmos/cosmos-sdk/pull/21952) Use liveness matrix for validator sign status in sims
* (sims) [#21906](https://github.com/cosmos/cosmos-sdk/pull/21906) Skip sims test when running dry on validators
* (cli) [#21919](https://github.com/cosmos/cosmos-sdk/pull/21919) Query address-by-acc-num by account_id instead of id.

### API Breaking Changes
Expand Down
5 changes: 4 additions & 1 deletion x/simulation/mock_cometbft.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,18 +151,21 @@ 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
}

voteInfos[i] = abci.VoteInfo{
Validator: abci.Validator{
Address: SumTruncated(mVal.val.PubKeyBytes),
Power: mVal.val.Power,
},
BlockIdFlag: cmtproto.BlockIDFlagCommit,
BlockIdFlag: commitStatus,
}
}

Expand Down

0 comments on commit 0d9b416

Please sign in to comment.