Request data for a list of block hashes.
(self, block_hashes)
| 111 | self.recent_headers_announced = [] |
| 112 | |
| 113 | def send_get_data(self, block_hashes): |
| 114 | """Request data for a list of block hashes.""" |
| 115 | msg = msg_getdata() |
| 116 | for x in block_hashes: |
| 117 | msg.inv.append(CInv(MSG_BLOCK, x)) |
| 118 | self.send_without_ping(msg) |
| 119 | |
| 120 | def send_get_headers(self, locator, hashstop): |
| 121 | msg = msg_getheaders() |