Skip to content

Commit

Permalink
Update tool_wallet.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan authored Mar 22, 2024
1 parent f2c8da1 commit 24fcbfc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/functional/tool_wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def skip_test_if_missing_module(self):
def digibyte_wallet_process(self, *args):
binary = self.config["environment"]["BUILDDIR"] + '/src/digibyte-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)

Expand Down Expand Up @@ -408,4 +408,4 @@ def run_test(self):
self.test_dump_createfromdump()

if __name__ == '__main__':
ToolWalletTest().main()
ToolWalletTest().main()

0 comments on commit 24fcbfc

Please sign in to comment.