mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Problem: public_key['data'] is now public_key['value']
Solution: Aligned the code with the change in key name
This commit is contained in:
parent
33691cf5cb
commit
cf3530ed59
@ -39,7 +39,7 @@ class ValidatorElection(Transaction):
|
|||||||
validators = {}
|
validators = {}
|
||||||
for validator in bigchain.get_validators():
|
for validator in bigchain.get_validators():
|
||||||
# NOTE: we assume that Tendermint encodes public key in base64
|
# NOTE: we assume that Tendermint encodes public key in base64
|
||||||
public_key = public_key_from_ed25519_key(key_from_base64(validator['pub_key']['data']))
|
public_key = public_key_from_ed25519_key(key_from_base64(validator['pub_key']['value']))
|
||||||
validators[public_key] = validator['voting_power']
|
validators[public_key] = validator['voting_power']
|
||||||
|
|
||||||
return validators
|
return validators
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user