Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-p2p-compactblocks.py
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | def set_test_params(self): | ||||
self.excessive_block_size = 16 * ONE_MEGABYTE | self.excessive_block_size = 16 * ONE_MEGABYTE | ||||
self.extra_args = [['-whitelist=127.0.0.1', | self.extra_args = [['-whitelist=127.0.0.1', | ||||
'-limitancestorcount=999999', | '-limitancestorcount=999999', | ||||
'-limitancestorsize=999999', | '-limitancestorsize=999999', | ||||
'-limitdescendantcount=999999', | '-limitdescendantcount=999999', | ||||
'-limitdescendantsize=999999', | '-limitdescendantsize=999999', | ||||
'-maxmempool=99999', | '-maxmempool=99999', | ||||
"-excessiveblocksize={}".format(self.excessive_block_size)]] | "-excessiveblocksize={}".format(self.excessive_block_size)]] | ||||
# UBSAN will cause this test to timeout without this. | |||||
self.rpc_timeout = 180 | |||||
def add_options(self, parser): | def add_options(self, parser): | ||||
super().add_options(parser) | super().add_options(parser) | ||||
parser.add_argument( | parser.add_argument( | ||||
"--runbarelyexpensive", dest="runbarelyexpensive", default=True) | "--runbarelyexpensive", dest="runbarelyexpensive", default=True) | ||||
def add_transactions_to_block(self, block, tx_list): | def add_transactions_to_block(self, block, tx_list): | ||||
[tx.rehash() for tx in tx_list] | [tx.rehash() for tx in tx_list] | ||||
▲ Show 20 Lines • Show All 247 Lines • Show Last 20 Lines |