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

Function on_rpc_command

tests/plugins/stop_sendpsbt.py:13–18  ·  view source on GitHub ↗
(plugin, rpc_command, **kwargs)

Source from the content-addressed store, hash-verified

11
12@plugin.hook("rpc_command")
13def on_rpc_command(plugin, rpc_command, **kwargs):
14 request = rpc_command
15 if request["method"] == "sendpsbt":
16 os.kill(os.getppid(), signal.SIGKILL)
17
18 return {"result": "continue"}
19
20
21plugin.run()

Callers

nothing calls this directly

Calls 1

killMethod · 0.80

Tested by

no test coverage detected