From 2f52e29a5baa758fb179e5dc3e7386af153d6ab1 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Mon, 7 May 2018 21:19:45 -0700 Subject: [PATCH] fundingmanager: remove sid arg from ReportShortChanID --- fundingmanager.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fundingmanager.go b/fundingmanager.go index 36546fb0..49289c01 100644 --- a/fundingmanager.go +++ b/fundingmanager.go @@ -304,7 +304,7 @@ type fundingConfig struct { // ReportShortChanID allows the funding manager to report the newly // discovered short channel ID of a formerly pending channel to outside // sub-systems. - ReportShortChanID func(wire.OutPoint, lnwire.ShortChannelID) error + ReportShortChanID func(wire.OutPoint) error // ZombieSweeperInterval is the periodic time interval in which the // zombie sweeper is run. @@ -1814,8 +1814,9 @@ func (f *fundingManager) waitForFundingConfirmation(completeChan *channeldb.Open } // As there might already be an active link in the switch with an - // outdated short chan ID, we'll update it now. - err = f.cfg.ReportShortChanID(fundingPoint, shortChanID) + // outdated short chan ID, we'll instruct the switch to load the updated + // short chan id from disk. + err = f.cfg.ReportShortChanID(fundingPoint) if err != nil { fndgLog.Errorf("unable to report short chan id: %v", err) }