mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-07 13:55:17 +00:00
types: sort validators by voting power
thus enabling faster commit verification assuming non uniform distribution of power. Closes #2478 spec: https://github.com/tendermint/spec/pull/91
This commit is contained in:
@@ -78,7 +78,7 @@ func (pkz privKeys) signHeader(header *types.Header, first, last int) *types.Com
|
||||
}
|
||||
|
||||
// We need this list to keep the ordering.
|
||||
vset := pkz.ToValidators(1, 0)
|
||||
vset := pkz.ToValidators(1, 1)
|
||||
|
||||
blockID := types.BlockID{
|
||||
Hash: header.Hash(),
|
||||
|
||||
Reference in New Issue
Block a user