Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-segwit-recovery.py
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | def set_test_params(self): | ||||
# connect directly to it via mininode and send a segwit spending | # connect directly to it via mininode and send a segwit spending | ||||
# txn. This transaction is non-standard. We check that sending | # txn. This transaction is non-standard. We check that sending | ||||
# this transaction doesn't result in a ban. | # this transaction doesn't result in a ban. | ||||
# Nodes are connected to each other, so node_std receives blocks and | # Nodes are connected to each other, so node_std receives blocks and | ||||
# transactions that node_nonstd has accepted. Since we are checking | # transactions that node_nonstd has accepted. Since we are checking | ||||
# that segwit spending txn are not resulting in bans, node_nonstd | # that segwit spending txn are not resulting in bans, node_nonstd | ||||
# doesn't get banned when forwarding this kind of transactions to | # doesn't get banned when forwarding this kind of transactions to | ||||
# node_std. | # node_std. | ||||
self.extra_args = [['-whitelist=127.0.0.1', | self.extra_args = [['-whitelist=noban@127.0.0.1', | ||||
"-acceptnonstdtxn"], | "-acceptnonstdtxn"], | ||||
["-acceptnonstdtxn=0"]] | ["-acceptnonstdtxn=0"]] | ||||
def next_block(self, number): | def next_block(self, number): | ||||
if self.tip is None: | if self.tip is None: | ||||
base_block_hash = self.genesis_hash | base_block_hash = self.genesis_hash | ||||
block_time = TEST_TIME | block_time = TEST_TIME | ||||
else: | else: | ||||
▲ Show 20 Lines • Show All 192 Lines • Show Last 20 Lines |