Skip to content

Commit

Permalink
fix(tm2): rpc status validator power (#2447)
Browse files Browse the repository at this point in the history
Error discovered working on #2430

On `/status` all node are showed with `voting_power=1`


![image](https://github.com/gnolang/gno/assets/8089712/09b3bd4c-3060-4681-a7a1-82c425734d8e)

This fixes it :)
  • Loading branch information
albttx authored Jun 26, 2024
1 parent 764eb65 commit 4dc2712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tm2/pkg/bft/rpc/core/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func validatorAtHeight(h int64) *types.Validator {
lastBlockHeight, vals := consensusState.GetValidators()
if lastBlockHeight == h {
for _, val := range vals {
if val.Address != privValAddress {
if val.Address == privValAddress {
return val
}
}
Expand Down

0 comments on commit 4dc2712

Please sign in to comment.