mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-31 04:01:55 +00:00
consensus cleanup, privValidator config
This commit is contained in:
@@ -81,6 +81,11 @@ func (vset *ValidatorSet) GetById(id uint64) (index uint32, val *Validator) {
|
||||
return
|
||||
}
|
||||
|
||||
func (vset *ValidatorSet) HasId(id uint64) bool {
|
||||
_, val_ := vset.validators.Get(id)
|
||||
return val_ != nil
|
||||
}
|
||||
|
||||
func (vset *ValidatorSet) GetByIndex(index uint32) (id uint64, val *Validator) {
|
||||
id_, val_ := vset.validators.GetByIndex(uint64(index))
|
||||
id, val = id_.(uint64), val_.(*Validator)
|
||||
|
Reference in New Issue
Block a user