(self, txid, *, timeout=60)
| 625 | # Message receiving helper methods |
| 626 | |
| 627 | def wait_for_tx(self, txid, *, timeout=60): |
| 628 | def test_function(): |
| 629 | if not self.last_message.get('tx'): |
| 630 | return False |
| 631 | return self.last_message['tx'].tx.txid_hex == txid |
| 632 | |
| 633 | self.wait_until(test_function, timeout=timeout) |
| 634 | |
| 635 | def wait_for_block(self, blockhash, *, timeout=60): |
| 636 | def test_function(): |