Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-transaction-ordering.py
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | class TransactionOrderingTest(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.block_heights = {} | self.block_heights = {} | ||||
self.tip = None | self.tip = None | ||||
self.blocks = {} | self.blocks = {} | ||||
self.extra_args = [['-whitelist=127.0.0.1', | self.extra_args = [['-whitelist=127.0.0.1', | ||||
'-relaypriority=0', | |||||
"-replayprotectionactivationtime={}".format(REPLAY_PROTECTION_START_TIME)]] | "-replayprotectionactivationtime={}".format(REPLAY_PROTECTION_START_TIME)]] | ||||
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] | ||||
block.vtx.extend(tx_list) | block.vtx.extend(tx_list) | ||||
def next_block(self, number, spend=None, tx_count=0): | def next_block(self, number, spend=None, tx_count=0): | ||||
if self.tip == None: | if self.tip == None: | ||||
▲ Show 20 Lines • Show All 176 Lines • Show Last 20 Lines |