Changeset View
Changeset View
Standalone View
Standalone View
test/functional/feature_block.py
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | class CBrokenBlock(CBlock): | ||||
def normal_serialize(self): | def normal_serialize(self): | ||||
return super().serialize() | return super().serialize() | ||||
class FullBlockTest(BitcoinTestFramework): | class FullBlockTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.extra_args = [['-noparkdeepreorg', '-maxreorgdepth=-1']] | # This is a consensus block test, we don't care about tx policy | ||||
self.extra_args = [['-noparkdeepreorg', | |||||
'-maxreorgdepth=-1', '-acceptnonstdtxn=1']] | |||||
def run_test(self): | def run_test(self): | ||||
node = self.nodes[0] # convenience reference to the node | node = self.nodes[0] # convenience reference to the node | ||||
self.bootstrap_p2p() # Add one p2p connection to the node | self.bootstrap_p2p() # Add one p2p connection to the node | ||||
self.block_heights = {} | self.block_heights = {} | ||||
self.coinbase_key = CECKey() | self.coinbase_key = CECKey() | ||||
▲ Show 20 Lines • Show All 1,081 Lines • Show Last 20 Lines |