diff --git a/CHANGELOG.md b/CHANGELOG.md index 227c84842..d79fb8670 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,15 +37,15 @@ program](https://hackerone.com/tendermint). * CLI/RPC/Config * Apps -- [state] [\#3049](https://github.com/tendermint/tendermint/issues/3049) Total voting power of the validator set is upper bounded by + - [state] [\#3049](https://github.com/tendermint/tendermint/issues/3049) Total voting power of the validator set is upper bounded by `MaxInt64 / 8`. Apps must ensure they do not return changes to the validator set that cause this maximum to be exceeded. * Go API -- [node] [\#3082](https://github.com/tendermint/tendermint/issues/3082) MetricsProvider now requires you to pass a chain ID -- [types] [\#2713](https://github.com/tendermint/tendermint/issues/2713) Rename `TxProof.LeafHash` to `TxProof.Leaf` -- [crypto/merkle] [\#2713](https://github.com/tendermint/tendermint/issues/2713) `SimpleProof.Verify` takes a `leaf` instead of a - `leafHash` and performs the hashing itself + - [node] [\#3082](https://github.com/tendermint/tendermint/issues/3082) MetricsProvider now requires you to pass a chain ID + - [types] [\#2713](https://github.com/tendermint/tendermint/issues/2713) Rename `TxProof.LeafHash` to `TxProof.Leaf` + - [crypto/merkle] [\#2713](https://github.com/tendermint/tendermint/issues/2713) `SimpleProof.Verify` takes a `leaf` instead of a + `leafHash` and performs the hashing itself * Blockchain Protocol * [crypto/merkle] [\#2713](https://github.com/tendermint/tendermint/issues/2713) Merkle trees now match the RFC 6962 specification diff --git a/types/validator_set.go b/types/validator_set.go index 38b9260a8..a36e1920d 100644 --- a/types/validator_set.go +++ b/types/validator_set.go @@ -98,7 +98,7 @@ func (vals *ValidatorSet) RescalePriorities(diffMax int64) { // NOTE: This check is merely a sanity check which could be // removed if all tests would init. voting power appropriately; // i.e. diffMax should always be > 0 - if diffMax == 0 { + if diffMax <= 0 { return }