From bf3ceccf807dd28ed329b6fc5b1b8e1bbee2e265 Mon Sep 17 00:00:00 2001 From: z-bowen Date: Tue, 14 Aug 2018 14:57:46 +0200 Subject: [PATCH] Problem: No docstring for `upsert-validator show` Solution: Added a docstring --- bigchaindb/commands/bigchaindb.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bigchaindb/commands/bigchaindb.py b/bigchaindb/commands/bigchaindb.py index 9be0b244..5bf4a677 100644 --- a/bigchaindb/commands/bigchaindb.py +++ b/bigchaindb/commands/bigchaindb.py @@ -140,6 +140,15 @@ def run_upsert_validator_new(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)