lntest+make: build w/ watchtowerrpc tag, add grpc client to harness
This commit is contained in:
parent
ccb2b29b93
commit
f7da87acc4
@ -25,6 +25,7 @@ import (
|
||||
"github.com/lightningnetwork/lnd/lnrpc/invoicesrpc"
|
||||
"github.com/lightningnetwork/lnd/lnrpc/routerrpc"
|
||||
"github.com/lightningnetwork/lnd/lnrpc/walletrpc"
|
||||
"github.com/lightningnetwork/lnd/lnrpc/watchtowerrpc"
|
||||
"github.com/lightningnetwork/lnd/macaroons"
|
||||
"golang.org/x/net/context"
|
||||
"google.golang.org/grpc"
|
||||
@ -250,10 +251,11 @@ type HarnessNode struct {
|
||||
|
||||
invoicesrpc.InvoicesClient
|
||||
|
||||
// RouterClient and WalletKitClient cannot be embedded, because a name
|
||||
// collision would occur with LightningClient.
|
||||
RouterClient routerrpc.RouterClient
|
||||
WalletKitClient walletrpc.WalletKitClient
|
||||
// RouterClient, WalletKitClient, WatchtowerClient cannot be embedded,
|
||||
// because a name collision would occur with LightningClient.
|
||||
RouterClient routerrpc.RouterClient
|
||||
WalletKitClient walletrpc.WalletKitClient
|
||||
WatchtowerClient watchtowerrpc.WatchtowerClient
|
||||
}
|
||||
|
||||
// Assert *HarnessNode implements the lnrpc.LightningClient interface.
|
||||
@ -515,6 +517,7 @@ func (hn *HarnessNode) initLightningClient(conn *grpc.ClientConn) error {
|
||||
hn.InvoicesClient = invoicesrpc.NewInvoicesClient(conn)
|
||||
hn.RouterClient = routerrpc.NewRouterClient(conn)
|
||||
hn.WalletKitClient = walletrpc.NewWalletKitClient(conn)
|
||||
hn.WatchtowerClient = watchtowerrpc.NewWatchtowerClient(conn)
|
||||
|
||||
// Set the harness node's pubkey to what the node claims in GetInfo.
|
||||
err := hn.FetchNodeInfo()
|
||||
@ -717,6 +720,7 @@ func (hn *HarnessNode) stop() error {
|
||||
hn.processExit = nil
|
||||
hn.LightningClient = nil
|
||||
hn.WalletUnlockerClient = nil
|
||||
hn.WatchtowerClient = nil
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@ endif
|
||||
|
||||
|
||||
# Construct the integration test command with the added build flags.
|
||||
ITEST_TAGS := $(DEV_TAGS) rpctest chainrpc walletrpc signrpc invoicesrpc autopilotrpc routerrpc
|
||||
ITEST_TAGS := $(DEV_TAGS) rpctest chainrpc walletrpc signrpc invoicesrpc autopilotrpc routerrpc watchtowerrpc
|
||||
|
||||
# Default to btcd backend if not set.
|
||||
ifneq ($(backend),)
|
||||
|
Loading…
Reference in New Issue
Block a user