do not raise exception when add_own_channel adds channel update from the cache

This commit is contained in:
ThomasV 2019-09-04 08:01:08 +02:00
parent e286ed1c13
commit bd57880799

View file

@ -377,8 +377,9 @@ class ChannelDB(SqlDB):
)
def add_channel_update(self, payload):
# called from add_own_channel
# the update may be categorized as deprecated because of caching
categorized_chan_upds = self.add_channel_updates([payload], verify=False)
assert len(categorized_chan_upds.good) == 1, categorized_chan_upds
def create_database(self):
c = self.conn.cursor()