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

Method wait_for_block

test/functional/test_framework/p2p.py:474–478  ·  view source on GitHub ↗
(self, blockhash, timeout=60)

Source from the content-addressed store, hash-verified

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

Callers 5

test_nonnull_locatorsMethod · 0.45
run_testMethod · 0.45
run_testMethod · 0.45
request_blockMethod · 0.45
run_testMethod · 0.45

Calls 1

wait_untilMethod · 0.95

Tested by 1

test_nonnull_locatorsMethod · 0.36