Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc-sync-chain.py
Show All 39 Lines | def set_test_params(self): | ||||
self.num_nodes = 1 | self.num_nodes = 1 | ||||
# Setting minimumchainwork makes sure we test IBD as well as post-IBD | # Setting minimumchainwork makes sure we test IBD as well as post-IBD | ||||
self.extra_args = [ | self.extra_args = [ | ||||
["-minimumchainwork={:#x}".format(202 + 2 * NUM_IBD_BLOCKS)]] | ["-minimumchainwork={:#x}".format(202 + 2 * NUM_IBD_BLOCKS)]] | ||||
def run_test(self): | def run_test(self): | ||||
node0conn = BaseNode() | node0conn = BaseNode() | ||||
node0conn.add_connection( | node0conn.add_connection( | ||||
NodeConn('127.0.0.1', p2p_port(0), self.nodes[0], node0conn)) | NodeConn('127.0.0.1', p2p_port(0), node0conn)) | ||||
NetworkThread().start() | NetworkThread().start() | ||||
node0conn.wait_for_verack() | node0conn.wait_for_verack() | ||||
node0 = self.nodes[0] | node0 = self.nodes[0] | ||||
tip = int(node0.getbestblockhash(), 16) | tip = int(node0.getbestblockhash(), 16) | ||||
height = node0.getblockcount() + 1 | height = node0.getblockcount() + 1 | ||||
Show All 27 Lines |