Changeset View
Changeset View
Standalone View
Standalone View
test/functional/feature_assumevalid.py
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | def send_header_for_blocks(self, new_blocks): | ||||
headers_message.headers = [CBlockHeader(b) for b in new_blocks] | headers_message.headers = [CBlockHeader(b) for b in new_blocks] | ||||
self.send_message(headers_message) | self.send_message(headers_message) | ||||
class AssumeValidTest(BitcoinTestFramework): | class AssumeValidTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.num_nodes = 3 | self.num_nodes = 3 | ||||
# Need a bit of extra time when running with the thread sanitizer | |||||
self.rpc_timeout = 120 | |||||
def setup_network(self): | def setup_network(self): | ||||
self.add_nodes(3) | self.add_nodes(3) | ||||
# Start node0. We don't start the other nodes yet since | # Start node0. We don't start the other nodes yet since | ||||
# we need to pre-mine a block with an invalid transaction | # we need to pre-mine a block with an invalid transaction | ||||
# signature so we can pass in the block hash as assumevalid. | # signature so we can pass in the block hash as assumevalid. | ||||
self.start_node(0) | self.start_node(0) | ||||
▲ Show 20 Lines • Show All 134 Lines • Show Last 20 Lines |