aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMacroFake <falke.marco@gmail.com>2022-11-10 14:46:12 +0100
committerMacroFake <falke.marco@gmail.com>2022-11-10 14:39:26 +0100
commitfac8d59d310fa94a8d5dd99659a76cd958d1fd1b (patch)
tree9498a651dcd1fa6e1701559b13c31285d60d746c
parentfa68937b89aa5b10b33b3f5146390cd7ad369ff7 (diff)
downloadbitcoin-fac8d59d310fa94a8d5dd99659a76cd958d1fd1b.tar.xz
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.
-rwxr-xr-xtest/functional/test_framework/test_node.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/test_framework/test_node.py b/test/functional/test_framework/test_node.py
index 0075fa0996..418f50fa41 100755
--- a/test/functional/test_framework/test_node.py
+++ b/test/functional/test_framework/test_node.py
@@ -105,6 +105,9 @@ class TestNode():
"-debugexclude=rand",
"-uacomment=testnode%d" % i,
]
+ if self.descriptors is None:
+ self.args.append("-disablewallet")
+
if use_valgrind:
default_suppressions_file = os.path.join(
os.path.dirname(os.path.realpath(__file__)),