funding: properly display our 1-byte error code messages
This commit is contained in:
parent
cc3b32c0d4
commit
4444ec39ea
@ -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
peer.go
2
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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user