Request data for a list of block hashes.
(self, block_hashes)
| 117 | self.recent_headers_announced = [] |
| 118 | |
| 119 | def send_get_data(self, block_hashes): |
| 120 | """Request data for a list of block hashes.""" |
| 121 | msg = msg_getdata() |
| 122 | for x in block_hashes: |
| 123 | msg.inv.append(CInv(MSG_BLOCK, x)) |
| 124 | self.send_message(msg) |
| 125 | |
| 126 | def send_get_headers(self, locator, hashstop): |
| 127 | msg = msg_getheaders() |