multi: pass reset to ForEachNodeCached

This commit is contained in:
Elle Mouton committed 2025-07-15 11:23:27 +02:00
1 parent e5fbca8299
commit c32bf642d2
14 files changed
+61 -25

No files matched your search

+9
View File
@@ -7215,6 +7215,15 @@ func (r *rpcServer) GetNetworkInfo(ctx context.Context,
}
return nil
}, func() {
numChannels = 0
numNodes = 0
maxChanOut = 0
totalNetworkCapacity = 0
minChannelSize = math.MaxInt64
maxChannelSize = 0
allChans = nil
clear(seenChans)
})
if err != nil {
return nil, err