commit 39bae1c7cf56c62725975ed5293c00f80c091f7c
parent 46c2d7821fb3a8e60b5a41cd46ecdc12cd1dc154
Author: ThomasV <thomasv@electrum.org>
Date: Sun, 11 Aug 2019 14:51:00 +0200
channel_db: load_data should load node_info
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/electrum/channel_db.py b/electrum/channel_db.py
@@ -518,6 +518,10 @@ class ChannelDB(SqlDB):
for x in c:
ci = ChannelInfo(*x)
self._channels[ci.short_channel_id] = ci
+ c.execute("""SELECT * FROM node_info""")
+ for x in c:
+ ni = NodeInfo(*x)
+ self._nodes[ni.node_id] = ni
c.execute("""SELECT * FROM policy""")
for x in c:
p = Policy(*x)