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)