Validator by pubkey, tests work-in-progress

This commit is contained in:
Christopher Goes
2018-05-28 21:55:52 +02:00
parent adec1cd7a9
commit b005f9f18d
5 changed files with 141 additions and 13 deletions
+3 -2
View File
@@ -45,8 +45,9 @@ type ValidatorSet interface {
IterateValidatorsBonded(Context,
func(index int64, validator Validator) (stop bool))
Validator(Context, Address) Validator // get a particular validator by owner address
TotalPower(Context) Rat // total power of the validator set
Validator(Context, Address) Validator // get a particular validator by owner address
ValidatorByPubKey(Context, crypto.PubKey) Validator // get a particular validator by public key
TotalPower(Context) Rat // total power of the validator set
}
//_______________________________________________________________________________