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

Function mock_getblockfrompeer

tests/test_plugin.py:2269–2272  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

2267 return {"id": r["id"], "result": [{"id": 1, "services": "000000000000040d"}]}
2268
2269 def mock_getblockfrompeer(r):
2270 nonlocal getblockfrompeer_count
2271 getblockfrompeer_count += 1
2272 return {"id": r["id"], "result": {}}
2273
2274 l1 = node_factory.get_node(start=False)
2275 l1.daemon.rpcproxy.mock_rpc("getblock", mock_getblock)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected