Changeset View
Changeset View
Standalone View
Standalone View
test/functional/p2p_compactblocks.py
Show First 20 Lines • Show All 127 Lines • ▼ Show 20 Lines | def send_await_disconnect(self, message, timeout=30): | ||||
wait_until(lambda: not self.is_connected, | wait_until(lambda: not self.is_connected, | ||||
timeout=timeout, lock=mininode_lock) | timeout=timeout, lock=mininode_lock) | ||||
class CompactBlocksTest(BitcoinTestFramework): | class CompactBlocksTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.num_nodes = 2 | self.num_nodes = 2 | ||||
self.extra_args = [[], ["-txindex"]] | self.extra_args = [["-acceptnonstdtxn=1"], | ||||
["-txindex", "-acceptnonstdtxn=1"]] | |||||
self.utxos = [] | self.utxos = [] | ||||
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 build_block_on_tip(self, node): | def build_block_on_tip(self, node): | ||||
height = node.getblockcount() | height = node.getblockcount() | ||||
tip = node.getbestblockhash() | tip = node.getbestblockhash() | ||||
▲ Show 20 Lines • Show All 789 Lines • Show Last 20 Lines |