From 9ff6de5be1e11a397c8d3e60d8d5ad656f611b09 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Wed, 7 Aug 2019 15:38:44 +0200 Subject: [PATCH] funding: add TODO for consistency check --- fundingmanager.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fundingmanager.go b/fundingmanager.go index 37f5563d7..33c04eb39 100644 --- a/fundingmanager.go +++ b/fundingmanager.go @@ -807,6 +807,12 @@ func (f *fundingManager) advanceFundingState(channel *channeldb.OpenChannel, // Channel not in fundingManager's opening database, // meaning it was successfully announced to the // network. + // TODO(halseth): could do graph consistency check + // here, and re-add the edge if missing. + fndgLog.Debugf("ChannlPoint(%v) with chanID=%v not "+ + "found in opening database, assuming already "+ + "announced to the network", + channel.FundingOutpoint, pendingChanID) return } else if err != nil { fndgLog.Errorf("Unable to query database for "+