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