Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet_balance.py
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | def set_test_params(self): | ||||
self.num_nodes = 2 | self.num_nodes = 2 | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.extra_args = [ | self.extra_args = [ | ||||
# Limit mempool descendants as a hack to have wallet txs rejected | # Limit mempool descendants as a hack to have wallet txs rejected | ||||
# from the mempool | # from the mempool | ||||
['-limitdescendantcount=3'], | ['-limitdescendantcount=3'], | ||||
[], | [], | ||||
] | ] | ||||
self.supports_cli = False | |||||
def skip_test_if_missing_module(self): | def skip_test_if_missing_module(self): | ||||
self.skip_if_no_wallet() | self.skip_if_no_wallet() | ||||
def run_test(self): | def run_test(self): | ||||
self.nodes[0].importaddress(ADDRESS_WATCHONLY) | self.nodes[0].importaddress(ADDRESS_WATCHONLY) | ||||
# Check that nodes don't own any UTXOs | # Check that nodes don't own any UTXOs | ||||
assert_equal(len(self.nodes[0].listunspent()), 0) | assert_equal(len(self.nodes[0].listunspent()), 0) | ||||
▲ Show 20 Lines • Show All 233 Lines • Show Last 20 Lines |