aboutsummaryrefslogtreecommitdiff
path: root/test/functional/tool_wallet.py
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2021-09-16 18:05:44 -0400
committerAndrew Chow <achow101-github@achow101.com>2021-09-17 13:32:06 -0400
commit9c1052a5218e191fd23c0d9fc06f2fca34b03411 (patch)
tree25711a12887709bacbbe58fa4c291da0ae57fe81 /test/functional/tool_wallet.py
parentf19ad404631010a5e2dac2c7cbecd057b005fe2a (diff)
downloadbitcoin-9c1052a5218e191fd23c0d9fc06f2fca34b03411.tar.xz
wallet: Default new wallets to descriptor wallets
Diffstat (limited to 'test/functional/tool_wallet.py')
-rwxr-xr-xtest/functional/tool_wallet.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/tool_wallet.py b/test/functional/tool_wallet.py
index 4bf3927879..3a0daf04ad 100755
--- a/test/functional/tool_wallet.py
+++ b/test/functional/tool_wallet.py
@@ -31,8 +31,8 @@ class ToolWalletTest(BitcoinTestFramework):
def bitcoin_wallet_process(self, *args):
binary = self.config["environment"]["BUILDDIR"] + '/src/bitcoin-wallet' + self.config["environment"]["EXEEXT"]
default_args = ['-datadir={}'.format(self.nodes[0].datadir), '-chain=%s' % self.chain]
- if self.options.descriptors and 'create' in args:
- default_args.append('-descriptors')
+ if not self.options.descriptors and 'create' in args:
+ default_args.append('-legacy')
return subprocess.Popen([binary] + default_args + list(args), stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)