(self, blockhash, inv_type, timeout=60)
| 208 | self.wait_for_getdata([block.sha256]) |
| 209 | |
| 210 | def request_block(self, blockhash, inv_type, timeout=60): |
| 211 | with p2p_lock: |
| 212 | self.last_message.pop("block", None) |
| 213 | self.send_message(msg_getdata(inv=[CInv(inv_type, blockhash)])) |
| 214 | self.wait_for_block(blockhash, timeout) |
| 215 | return self.last_message["block"].block |
| 216 | |
| 217 | class SegWitTest(BitcoinTestFramework): |
| 218 | def set_test_params(self): |