include validator's voting power in /status

Refs #581
This commit is contained in:
Anton Kaliaev
2018-04-04 11:34:59 +02:00
parent 0732526465
commit ed782e7508
4 changed files with 60 additions and 12 deletions
+1 -2
View File
@@ -100,9 +100,8 @@ func (valSet *ValidatorSet) GetByAddress(address []byte) (index int, val *Valida
})
if idx < len(valSet.Validators) && bytes.Equal(valSet.Validators[idx].Address, address) {
return idx, valSet.Validators[idx].Copy()
} else {
return -1, nil
}
return -1, nil
}
// GetByIndex returns the validator's address and validator itself by index.