From 4444ec39ea2006fb8c6de92a1900f36f8a67e2b6 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Wed, 6 Dec 2017 18:43:51 -0800 Subject: [PATCH] funding: properly display our 1-byte error code messages --- fundingmanager.go | 2 +- peer.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/fundingmanager.go b/fundingmanager.go index 107cf9b0..c994258a 100644 --- a/fundingmanager.go +++ b/fundingmanager.go @@ -2220,7 +2220,7 @@ func (f *fundingManager) handleErrorMsg(fmsg *fundingErrorMsg) { // If this isn't a simple error code, then we'll display the entire // thing. - if len(protocolErr.Data) > 0 { + if len(protocolErr.Data) > 1 { resCtx.err <- grpc.Errorf( lnErr.ToGrpcCode(), string(protocolErr.Data), ) diff --git a/peer.go b/peer.go index 9a17497b..481359f1 100644 --- a/peer.go +++ b/peer.go @@ -596,8 +596,6 @@ func newChanMsgStream(p *peer, cid lnwire.ChannelID) *msgStream { // to the other side, they immediately send a // channel update message, but we haven't yet // sent the channel to the channelManager. - peerLog.Infof("waiting on chan open to deliver: %v", - spew.Sdump(msg)) p.server.fundingMgr.waitUntilChannelOpen(cid) }