MCPcopy Create free account
hub / github.com/ElementsProject/lightning / stall_getblock

Function stall_getblock

tests/test_opening.py:1708–1712  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

1706 release = threading.Event()
1707
1708 def stall_getblock(r):
1709 if r['params'][0] == stall_blockid:
1710 release.wait(TIMEOUT)
1711 # Fall through to the real bitcoind.
1712 return None
1713
1714 l2.daemon.rpcproxy.mock_rpc('getblock', stall_getblock)
1715 l2.start(wait_for_bitcoind_sync=False)

Callers

nothing calls this directly

Calls 1

waitMethod · 0.45

Tested by

no test coverage detected