From a44ccd0359542cc5b73fd603d44be0a3f527f6d3 Mon Sep 17 00:00:00 2001 From: crokkon <33018033+crokkon@users.noreply.github.com> Date: Sun, 7 Jan 2018 09:52:27 +0100 Subject: [PATCH] fix custom node selection for steempy cli the `steempy` cli ignored the setting from the `--node` command line option and always used the default node due to a parameter name mismatch/typo on the `Steem()` construtor parameters --- steem/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/steem/cli.py b/steem/cli.py index b58a430..b1af39a 100644 --- a/steem/cli.py +++ b/steem/cli.py @@ -929,7 +929,7 @@ def legacy(): # initialize STEEM instance options = { - "node": args.node, + "nodes": [args.node] if args.node else None, "unsigned": args.unsigned, "expires": args.expires } @@ -958,7 +958,7 @@ def legacy(): if not args.objects: t = PrettyTable(["Key", "Value"]) t.align = "l" - blockchain = Blockchain(mode="head") + blockchain = Blockchain(mode="head", steemd_instance=steem) info = blockchain.info() median_price = steem.get_current_median_history_price() steem_per_mvest = (