(self, blockhash, timeout=60)
| 472 | self.wait_until(test_function, timeout=timeout) |
| 473 | |
| 474 | def wait_for_block(self, blockhash, timeout=60): |
| 475 | def test_function(): |
| 476 | return self.last_message.get("block") and self.last_message["block"].block.rehash() == blockhash |
| 477 | |
| 478 | self.wait_until(test_function, timeout=timeout) |
| 479 | |
| 480 | def wait_for_header(self, blockhash, timeout=60): |
| 481 | def test_function(): |