(self, locator)
| 134 | self.send_without_ping(headers_message) |
| 135 | |
| 136 | def send_getblocks(self, locator): |
| 137 | getblocks_message = msg_getblocks() |
| 138 | getblocks_message.locator.vHave = locator |
| 139 | self.send_without_ping(getblocks_message) |
| 140 | |
| 141 | def wait_for_block_announcement(self, block_hash, timeout=60): |
| 142 | test_function = lambda: self.last_blockhash_announced == block_hash |