funding: add TODO for consistency check

This commit is contained in:
Johan T. Halseth 2019-08-07 15:38:44 +02:00
parent bda0e40dad
commit 9ff6de5be1
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

View File

@ -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 "+