fix: actually run rpc_fundrawtransaction with and without HD feature

This commit is contained in:
Konstantin Akimov 2024-02-28 16:02:21 +07:00 committed by pasta
parent 2f7f67831d
commit a392be6cf0
No known key found for this signature in database
GPG Key ID: 52527BEDABE87984
2 changed files with 4 additions and 5 deletions

View File

@ -28,17 +28,16 @@ class RawTransactionsTest(BitcoinTestFramework):
def set_test_params(self):
self.num_nodes = 4
self.setup_clean_chain = True
self.extra_args = [[f'-usehd={self.options.usehd}']] * self.num_nodes
# This test isn't testing tx relay. Set whitelist on the peers for
# instant tx relay.
self.extra_args = [['-whitelist=noban@127.0.0.1']] * self.num_nodes
self.extra_args = [[f'-usehd={not self.options.nohd}', '-whitelist=noban@127.0.0.1']] * self.num_nodes
def skip_test_if_missing_module(self):
self.skip_if_no_wallet()
def add_options(self, parser):
parser.add_argument("--usehd", dest="usehd", default=False, action="store_true",
help="Test with -usehd enabled")
parser.add_argument("--nohd", dest="nohd", default=False, action="store_true",
help="Test with -nohd enabled")
def setup_network(self):
self.setup_nodes()

View File

@ -98,7 +98,7 @@ BASE_SCRIPTS = [
'feature_maxuploadtarget.py',
'feature_block.py', # NOTE: needs dash_hash to pass
'rpc_fundrawtransaction.py',
'rpc_fundrawtransaction.py --usehd',
'rpc_fundrawtransaction.py --nohd',
'wallet_multiwallet.py --usecli',
'p2p_quorum_data.py',
# vv Tests less than 2m vv