Skip to content

Commit

Permalink
Merge pull request #5479 from oasisprotocol/ptrus/fix/reference-compa…
Browse files Browse the repository at this point in the history
…rsion

governance: fix delegator-validator vote match check
  • Loading branch information
ptrus authored Nov 28, 2023
2 parents 5da85f3 + d77922c commit 31fac50
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .changelog/5479.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
governance: fix delegator-validator vote match check
5 changes: 3 additions & 2 deletions go/consensus/cometbft/apps/governance/governance.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,9 @@ func (app *governanceApplication) closeProposal(
}
delegationToValidator = true
validatorVote := validatorVotes[to]
if validatorVote == &vote.Vote { //nolint:gosec
// Vote matches the delegated validator vote.

// Skip if vote matches the delegated validator vote.
if validatorVote != nil && *validatorVote == vote.Vote {
continue
}

Expand Down
2 changes: 1 addition & 1 deletion go/oasis-test-runner/scenario/e2e/genesis_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

const (
// Mainnet genesis dump at height: 11645601.
genesisURL = "https://oasis-artifacts.s3.us-east-2.amazonaws.com/genesis_mainnet_dump_11645601.json"
genesisURL = "https://oasis-artifacts.s3.eu-central-1.amazonaws.com/genesis_mainnet_dump_11645601.json"
genesisSHA256 = "16386902d822227d0ba1e011ab84a754a48c61457e06240986f9c00e84895459" // #nosec G101

genesisNeedsUpgrade = true
Expand Down

0 comments on commit 31fac50

Please sign in to comment.