mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 23:09:44 -04:00
test: convert tuple to json for cli
This makes it possible to run rpc_createmultisig.py with --usecli.
This commit is contained in:
parent
4829c414dc
commit
75b58471db
2 changed files with 1 additions and 2 deletions
|
@ -28,7 +28,6 @@ class RpcCreateMultiSigTest(BitcoinTestFramework):
|
||||||
def set_test_params(self):
|
def set_test_params(self):
|
||||||
self.setup_clean_chain = True
|
self.setup_clean_chain = True
|
||||||
self.num_nodes = 3
|
self.num_nodes = 3
|
||||||
self.supports_cli = False
|
|
||||||
|
|
||||||
def create_keys(self, num_keys):
|
def create_keys(self, num_keys):
|
||||||
self.pub = []
|
self.pub = []
|
||||||
|
|
|
@ -862,7 +862,7 @@ def arg_to_cli(arg):
|
||||||
return str(arg).lower()
|
return str(arg).lower()
|
||||||
elif arg is None:
|
elif arg is None:
|
||||||
return 'null'
|
return 'null'
|
||||||
elif isinstance(arg, dict) or isinstance(arg, list):
|
elif isinstance(arg, dict) or isinstance(arg, list) or isinstance(arg, tuple):
|
||||||
return json.dumps(arg, default=serialization_fallback)
|
return json.dumps(arg, default=serialization_fallback)
|
||||||
else:
|
else:
|
||||||
return str(arg)
|
return str(arg)
|
||||||
|
|
Loading…
Add table
Reference in a new issue