funding: properly display our 1-byte error code messages

This commit is contained in:
Olaoluwa Osuntokun committed 2017-12-06 18:43:58 -08:00
1 parent cc3b32c0d4
commit 4444ec39ea
2 files changed
+1 -3

No files matched your search

+1 -1
View File
@@ -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),
)
-2
View File
@@ -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)
}