mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Problem: No docstring for upsert-validator show
Solution: Added a docstring
This commit is contained in:
parent
96d39778c5
commit
bf3ceccf80
@ -140,6 +140,15 @@ def run_upsert_validator_new(args, bigchain):
|
|||||||
|
|
||||||
|
|
||||||
def run_upsert_validator_show(args, bigchain):
|
def run_upsert_validator_show(args, bigchain):
|
||||||
|
"""Retrieves information about an upsert-validator election
|
||||||
|
|
||||||
|
:param args: dict
|
||||||
|
args = {
|
||||||
|
'election_id': the transaction_id for an election (str)
|
||||||
|
}
|
||||||
|
:param bigchain: an instance of BigchainDB
|
||||||
|
:return: (public_key, power, node_id) for the proposed change to the validator set
|
||||||
|
"""
|
||||||
|
|
||||||
election = bigchain.get_transaction(args.election_id)
|
election = bigchain.get_transaction(args.election_id)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user