From a15be80a45753a3d45c19d0e26d136aa001c3e59 Mon Sep 17 00:00:00 2001 From: Wilmer Paulino Date: Fri, 26 Oct 2018 10:03:54 -0700 Subject: [PATCH] fundingmanager: identify tx on funding broadcast error --- fundingmanager.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/fundingmanager.go b/fundingmanager.go index abd7df3f..46a7a2bd 100644 --- a/fundingmanager.go +++ b/fundingmanager.go @@ -504,8 +504,9 @@ func (f *fundingManager) Start() error { err := f.cfg.PublishTransaction(channel.FundingTxn) if err != nil && err != lnwallet.ErrDoubleSpend { - fndgLog.Warnf("unable to rebroadcast funding "+ - "txn: %v", err) + fndgLog.Errorf("Unable to rebroadcast funding "+ + "tx for ChannelPoint(%v): %v", + channel.FundingOutpoint, err) } } @@ -1591,8 +1592,9 @@ func (f *fundingManager) handleFundingSigned(fmsg *fundingSignedMsg) { err = f.cfg.PublishTransaction(fundingTx) if err != nil { - fndgLog.Errorf("unable to broadcast funding "+ - "txn: %v", err) + fndgLog.Errorf("Unable to broadcast funding tx for "+ + "ChannelPoint(%v): %v", completeChan.FundingOutpoint, + err) // We failed to broadcast the funding transaction, but watch // the channel regardless, in case the transaction made it to // the network. We will retry broadcast at startup.