Merge pull request #2485 from halseth/error-codes-dont-send

[lnwire+funding] Don't send ErrorCode on wire
This commit is contained in:
Olaoluwa Osuntokun authored and GitHub committed 2019-09-23 17:50:27 -07:00
commit 9b1ecbd3fa
7 files changed
+64 -95

No files matched your search

+3 -2
View File
@@ -42,7 +42,6 @@ import (
"github.com/lightningnetwork/lnd/lnwire"
"github.com/lightningnetwork/lnd/routing"
"golang.org/x/net/context"
"google.golang.org/grpc"
)
var (
@@ -6187,7 +6186,9 @@ func testMaxPendingChannels(net *lntest.NetworkHarness, t *harnessTest) {
if err == nil {
t.Fatalf("error wasn't received")
} else if grpc.Code(err) != lnwire.ErrMaxPendingChannels.ToGrpcCode() {
} else if !strings.Contains(
err.Error(), lnwire.ErrMaxPendingChannels.Error(),
) {
t.Fatalf("not expected error was received: %v", err)
}