Problem: No docstring for upsert-validator show

Solution: Added a docstring
This commit is contained in:
z-bowen 2018-08-14 14:57:46 +02:00
parent 96d39778c5
commit bf3ceccf80

View File

@ -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)