Skip to content

Commit fac8d59

Browse files
author
MacroFake
committed
test: Set -disablewallet when no wallet has been compiled
self.descriptors is None when no wallet has been compiled, so it is safe to completely disable the wallet. This change will enhance a future commit.
1 parent fa68937 commit fac8d59

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/functional/test_framework/test_node.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ def __init__(self, i, datadir, *, chain, rpchost, timewait, timeout_factor, bitc
105105
"-debugexclude=rand",
106106
"-uacomment=testnode%d" % i,
107107
]
108+
if self.descriptors is None:
109+
self.args.append("-disablewallet")
110+
108111
if use_valgrind:
109112
default_suppressions_file = os.path.join(
110113
os.path.dirname(os.path.realpath(__file__)),

0 commit comments

Comments
 (0)