[LND] Nullify zeroed timestamps

This commit is contained in:
nymkappa
2023-02-13 14:23:32 +09:00
parent b7e6b6da13
commit 6d1e6a92ad
6 changed files with 30 additions and 6 deletions

View File

@@ -72,7 +72,7 @@ class NetworkSyncService {
const graphNodesPubkeys: string[] = [];
for (const node of nodes) {
const latestUpdated = await channelsApi.$getLatestChannelUpdateForNode(node.pub_key);
node.last_update = Math.max(node.last_update, latestUpdated);
node.last_update = Math.max(node.last_update ?? 0, latestUpdated);
await nodesApi.$saveNode(node);
graphNodesPubkeys.push(node.pub_key);