Merge branch 'master' into wb/abci-process-proposal-synchronize

This commit is contained in:
William Banfield
2022-02-22 17:24:13 -05:00
committed by GitHub
14 changed files with 56 additions and 43 deletions
+5 -1
View File
@@ -504,8 +504,12 @@ func (store dbStore) LoadValidators(height int64) (*types.ValidatorSet, error) {
if err != nil {
return nil, err
}
h, err := tmmath.SafeConvertInt32(height - lastStoredHeight)
if err != nil {
return nil, err
}
vs.IncrementProposerPriority(tmmath.SafeConvertInt32(height - lastStoredHeight)) // mutate
vs.IncrementProposerPriority(h) // mutate
vi2, err := vs.ToProto()
if err != nil {
return nil, err