MCPcopy Create free account
hub / github.com/ElementsProject/elements / wait_for_tx

Method wait_for_tx

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

Source from the content-addressed store, hash-verified

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

Callers 3

blocksonly_mode_testsMethod · 0.80
test_msg_mempoolMethod · 0.80
test_filterMethod · 0.80

Calls 1

wait_untilMethod · 0.95

Tested by 2

test_msg_mempoolMethod · 0.64
test_filterMethod · 0.64