Changeset View
Changeset View
Standalone View
Standalone View
test/functional/bipdersig-p2p.py
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | def set_test_params(self): | ||||
self.extra_args = [ | self.extra_args = [ | ||||
['-promiscuousmempoolflags=1', '-whitelist=127.0.0.1']] | ['-promiscuousmempoolflags=1', '-whitelist=127.0.0.1']] | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
def run_test(self): | def run_test(self): | ||||
node0 = NodeConnCB() | node0 = NodeConnCB() | ||||
connections = [] | connections = [] | ||||
connections.append( | connections.append( | ||||
NodeConn('127.0.0.1', p2p_port(0), self.nodes[0], node0)) | NodeConn('127.0.0.1', self.p2p_port(0), self.nodes[0], node0)) | ||||
node0.add_connection(connections[0]) | node0.add_connection(connections[0]) | ||||
NetworkThread().start() # Start up network handling in another thread | NetworkThread().start() # Start up network handling in another thread | ||||
# wait_for_verack ensures that the P2P connection is fully up. | # wait_for_verack ensures that the P2P connection is fully up. | ||||
node0.wait_for_verack() | node0.wait_for_verack() | ||||
self.log.info("Mining %d blocks", DERSIG_HEIGHT - 1) | self.log.info("Mining %d blocks", DERSIG_HEIGHT - 1) | ||||
self.coinbase_blocks = self.nodes[0].generate(DERSIG_HEIGHT - 1) | self.coinbase_blocks = self.nodes[0].generate(DERSIG_HEIGHT - 1) | ||||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |