daemon: pass cmdname to register_method

This allows plugins to use already existing names without Electrum complaining about collisions
This commit is contained in:
ThomasV
2025-11-04 12:08:16 +01:00
parent e02cfbfb60
commit 9c4c7f01ac
2 changed files with 9 additions and 9 deletions

View File

@@ -28,8 +28,8 @@ class WatchTowerServer(AuthenticatedServer):
self.lnwatcher = watchtower
self.app = web.Application()
self.app.router.add_post("/", self.handle)
self.register_method(self.get_ctn)
self.register_method(self.add_sweep_tx)
self.register_method('get_ctn', self.get_ctn)
self.register_method('add_sweep_tx', self.add_sweep_tx)
async def run(self):
self.runner = web.AppRunner(self.app)