MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / wait_for_tx

Method wait_for_tx

test/functional/test_framework/p2p.py:627–633  ·  view source on GitHub ↗
(self, txid, *, timeout=60)

Source from the content-addressed store, hash-verified

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():

Callers 4

blocksonly_mode_testsMethod · 0.80
test_msg_mempoolMethod · 0.80
test_filterMethod · 0.80
run_testMethod · 0.80

Calls 1

wait_untilMethod · 0.95

Tested by 2

test_msg_mempoolMethod · 0.64
test_filterMethod · 0.64