From bcd5e679c83af133971cd8ccfc5f839665ca3fc0 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 16 May 2019 11:32:14 +0200 Subject: [PATCH] fix: add_channel_update --- electrum/lnpeer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electrum/lnpeer.py b/electrum/lnpeer.py index 588eb3422..b6b8d72f7 100644 --- a/electrum/lnpeer.py +++ b/electrum/lnpeer.py @@ -901,7 +901,7 @@ class Peer(Logger): # len=9, encoded_short_ids=b'\x00'+chan.short_channel_id) pending_channel_update = self.orphan_channel_updates.get(chan.short_channel_id) if pending_channel_update: - self.channel_db.on_channel_update(pending_channel_update) + self.channel_db.add_channel_update(pending_channel_update) self.logger.info("CHANNEL OPENING COMPLETED") @@ -992,7 +992,7 @@ class Peer(Logger): payload['raw'] = channel_update try: self.logger.info(f"trying to apply channel update on our db {payload}") - self.channel_db.on_channel_update(payload) + self.channel_db.add_channel_update(payload) self.logger.info("successfully applied channel update on our db") except NotFoundChanAnnouncementForUpdate: # maybe it is a private channel (and data in invoice was outdated)