(self, blockhash, *, timeout=60)
| 639 | self.wait_until(test_function, timeout=timeout) |
| 640 | |
| 641 | def wait_for_header(self, blockhash, *, timeout=60): |
| 642 | def test_function(): |
| 643 | last_headers = self.last_message.get('headers') |
| 644 | if not last_headers: |
| 645 | return False |
| 646 | return last_headers.headers[0].hash_int == int(blockhash, 16) |
| 647 | |
| 648 | self.wait_until(test_function, timeout=timeout) |
| 649 | |
| 650 | def wait_for_merkleblock(self, blockhash, *, timeout=60): |
| 651 | def test_function(): |
no test coverage detected