(self, txid, timeout=60)
| 464 | # Message receiving helper methods |
| 465 | |
| 466 | def wait_for_tx(self, txid, timeout=60): |
| 467 | def test_function(): |
| 468 | if not self.last_message.get('tx'): |
| 469 | return False |
| 470 | return self.last_message['tx'].tx.rehash() == txid |
| 471 | |
| 472 | self.wait_until(test_function, timeout=timeout) |
| 473 | |
| 474 | def wait_for_block(self, blockhash, timeout=60): |
| 475 | def test_function(): |