mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-30 02:31:05 +02:00
test: Make requires_wallet private
The bool is only used to call a public helper, which some tests already do. So use the public helper in all tests consistently and make the confusingly named bool private.
This commit is contained in:
@ -65,8 +65,6 @@ class RawTransactionsTest(BitcoinTestFramework):
|
||||
# whitelist all peers to speed up tx relay / mempool sync
|
||||
for args in self.extra_args:
|
||||
args.append("-whitelist=noban@127.0.0.1")
|
||||
self.requires_wallet = self.is_specified_wallet_compiled()
|
||||
|
||||
self.supports_cli = False
|
||||
|
||||
def setup_network(self):
|
||||
@ -85,7 +83,8 @@ class RawTransactionsTest(BitcoinTestFramework):
|
||||
self.sendrawtransaction_testmempoolaccept_tests()
|
||||
self.decoderawtransaction_tests()
|
||||
self.transaction_version_number_tests()
|
||||
if self.requires_wallet and not self.options.descriptors:
|
||||
if self.is_specified_wallet_compiled() and not self.options.descriptors:
|
||||
self.import_deterministic_coinbase_privkeys()
|
||||
self.raw_multisig_transaction_legacy_tests()
|
||||
|
||||
def getrawtransaction_tests(self):
|
||||
|
Reference in New Issue
Block a user