MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / test_function

Method test_function

test/functional/test_framework/mininode.py:336–340  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

334
335 def wait_for_header(self, blockhash, timeout=60):
336 def test_function():
337 last_headers = self.last_message.get('headers')
338 if not last_headers:
339 return False
340 return last_headers.headers[0].rehash() == blockhash
341
342 wait_until(test_function, timeout=timeout, lock=mininode_lock)
343

Callers

nothing calls this directly

Calls 2

getMethod · 0.80
rehashMethod · 0.45

Tested by

no test coverage detected