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

Function on_rpc_command

tests/test_pay.py:7436–7442  ·  view source on GitHub ↗
(plugin, rpc_command, **kwargs)

Source from the content-addressed store, hash-verified

7434
7435 @plugin.hook("rpc_command")
7436 def on_rpc_command(plugin, rpc_command, **kwargs):
7437 if rpc_command["method"] == "listincoming" and plugin.incoming:
7438 plugin.log(
7439 "Producing fake listincoming with {}".format(plugin.incoming)
7440 )
7441 return {"return": {"result": {"incoming": [plugin.incoming]}}}
7442 return {"result": "continue"}
7443
7444 @plugin.method("setincoming")
7445 def setincoming(plugin, channel):

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected