Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet_txn_doublespend.py
Show All 25 Lines | class TxnMallTest(BitcoinTestFramework): | ||||
def add_options(self, parser): | def add_options(self, parser): | ||||
parser.add_argument("--mineblock", dest="mine_block", default=False, action="store_true", | parser.add_argument("--mineblock", dest="mine_block", default=False, action="store_true", | ||||
help="Test double-spend of 1-confirmed transaction") | help="Test double-spend of 1-confirmed transaction") | ||||
def setup_network(self): | def setup_network(self): | ||||
# Start with split network: | # Start with split network: | ||||
super().setup_network() | super().setup_network() | ||||
disconnect_nodes(self.nodes[1], self.nodes[2]) | disconnect_nodes(self.nodes[1], self.nodes[2]) | ||||
disconnect_nodes(self.nodes[2], self.nodes[1]) | |||||
def run_test(self): | def run_test(self): | ||||
# All nodes should start with 1,250 BCH: | # All nodes should start with 1,250 BCH: | ||||
starting_balance = 1250 | starting_balance = 1250 | ||||
# All nodes should be out of IBD. | # All nodes should be out of IBD. | ||||
# If the nodes are not all out of IBD, that can interfere with | # If the nodes are not all out of IBD, that can interfere with | ||||
# blockchain sync later in the test when nodes are connected, due to | # blockchain sync later in the test when nodes are connected, due to | ||||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |