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

Function mock_getblockhash

tests/test_xpay.py:1159–1166  ·  view source on GitHub ↗
(req)

Source from the content-addressed store, hash-verified

1157 # blockhash. This error is special-cased not to count as the
1158 # backend failing since it is used to poll for the next block.
1159 def mock_getblockhash(req):
1160 return {
1161 "id": req['id'],
1162 "error": {
1163 "code": -8,
1164 "message": "Block height out of range"
1165 }
1166 }
1167
1168 l1.daemon.rpcproxy.mock_rpc('getblockhash', mock_getblockhash)
1169 bitcoind.generate_block(4)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected