Merge pull request #2361 from mempool/nymkappa/bugfix/cannot-update-channel-list

Fix "cannot update channel list" error
This commit is contained in:
wiz 2022-08-23 22:14:49 +09:00 committed by GitHub
commit 13c5e05044
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,7 +98,7 @@ class NetworkSyncService {
const [closedChannelsRaw]: any[] = await DB.query(`SELECT id FROM channels WHERE status = 2`);
const closedChannels = {};
for (const closedChannel of closedChannelsRaw) {
closedChannels[Common.channelShortIdToIntegerId(closedChannel.id)] = true;
closedChannels[closedChannel.id] = true;
}
let progress = 0;