mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Problem: Wrong method name
Solution: Refactored `current_validators` to `get_validators`
This commit is contained in:
parent
08bb60ecb8
commit
5db6735415
@ -159,8 +159,7 @@ def run_upsert_validator_approve(args, bigchain):
|
||||
|
||||
key = load_node_key(args.sk)
|
||||
tx = bigchain.get_transaction(args.election_id)
|
||||
voting_power = ValidatorElection.current_validators(bigchain)[
|
||||
key.public_key]
|
||||
voting_power = ValidatorElection.get_validators(bigchain)[key.public_key]
|
||||
|
||||
approval = ValidatorElectionVote.generate(tx.to_inputs(), [
|
||||
([key.public_key], voting_power)], tx.id).sign([key.private_key])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user