diff --git a/.changelog/5479.bugfix.md b/.changelog/5479.bugfix.md new file mode 100644 index 00000000000..3ef5ec311e1 --- /dev/null +++ b/.changelog/5479.bugfix.md @@ -0,0 +1 @@ +governance: fix delegator-validator vote match check diff --git a/go/consensus/cometbft/apps/governance/governance.go b/go/consensus/cometbft/apps/governance/governance.go index 35caa8ffd2f..d01e3c140b8 100644 --- a/go/consensus/cometbft/apps/governance/governance.go +++ b/go/consensus/cometbft/apps/governance/governance.go @@ -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 } diff --git a/go/oasis-test-runner/scenario/e2e/genesis_file.go b/go/oasis-test-runner/scenario/e2e/genesis_file.go index a6ed7e97164..28e2ab0d711 100644 --- a/go/oasis-test-runner/scenario/e2e/genesis_file.go +++ b/go/oasis-test-runner/scenario/e2e/genesis_file.go @@ -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