(plugin, rpc_command, **kwargs)
| 11 | |
| 12 | @plugin.hook("rpc_command") |
| 13 | def 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 | |
| 21 | plugin.run() |