Tear down and bootstrap the P2P connection to the node. The node gets disconnected several times in this test. This helper method reconnects the p2p and restarts the network thread.
(self, timeout=60)
| 1463 | self.helper_peer.wait_for_getheaders(timeout=timeout) |
| 1464 | |
| 1465 | def reconnect_p2p(self, timeout=60): |
| 1466 | """Tear down and bootstrap the P2P connection to the node. |
| 1467 | |
| 1468 | The node gets disconnected several times in this test. This helper |
| 1469 | method reconnects the p2p and restarts the network thread.""" |
| 1470 | self.nodes[0].disconnect_p2ps() |
| 1471 | self.bootstrap_p2p(timeout=timeout) |
| 1472 | |
| 1473 | def send_blocks(self, blocks, success=True, reject_reason=None, force_send=False, reconnect=False, timeout=960): |
| 1474 | """Sends blocks to test node. Syncs and verifies that tip has advanced to most recent block. |
no test coverage detected