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.
This commit is contained in:
MacroFake 2022-11-10 14:46:12 +01:00
parent fa68937b89
commit fac8d59d31
No known key found for this signature in database
GPG Key ID: CE2B75697E69A548

View File

@ -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__)),