diff --git a/cmd/lncli/commands.go b/cmd/lncli/commands.go index 78a7a99d..14707b6c 100644 --- a/cmd/lncli/commands.go +++ b/cmd/lncli/commands.go @@ -818,7 +818,7 @@ func closeAllChannels(ctx *cli.Context) error { return errors.New("no open channels to close") } - var channelsToClose []*lnrpc.ActiveChannel + var channelsToClose []*lnrpc.Channel switch { case ctx.Bool("force") && ctx.Bool("inactive_only"): @@ -904,7 +904,7 @@ func closeAllChannels(ctx *cli.Context) error { // they come. resultChan := make(chan result, len(channelsToClose)) for _, channel := range channelsToClose { - go func(channel *lnrpc.ActiveChannel) { + go func(channel *lnrpc.Channel) { res := result{} res.RemotePubKey = channel.RemotePubkey res.ChannelPoint = channel.ChannelPoint diff --git a/lnd_test.go b/lnd_test.go index f37b64fb..27b34628 100644 --- a/lnd_test.go +++ b/lnd_test.go @@ -1471,7 +1471,7 @@ func testChannelForceClosure(net *lntest.NetworkHarness, t *harnessTest) { // As we'll be querying the state of Carol's channels frequently we'll // create a closure helper function for the purpose. - getAliceChanInfo := func() (*lnrpc.ActiveChannel, error) { + getAliceChanInfo := func() (*lnrpc.Channel, error) { req := &lnrpc.ListChannelsRequest{} aliceChannelInfo, err := net.Alice.ListChannels(ctxb, req) if err != nil { @@ -3421,7 +3421,7 @@ func testRevokedCloseRetribution(net *lntest.NetworkHarness, t *harnessTest) { // As we'll be querying the state of bob's channels frequently we'll // create a closure helper function for the purpose. - getBobChanInfo := func() (*lnrpc.ActiveChannel, error) { + getBobChanInfo := func() (*lnrpc.Channel, error) { req := &lnrpc.ListChannelsRequest{} bobChannelInfo, err := net.Bob.ListChannels(ctxb, req) if err != nil { @@ -3454,7 +3454,7 @@ func testRevokedCloseRetribution(net *lntest.NetworkHarness, t *harnessTest) { // Next query for Bob's channel state, as we sent 3 payments of 10k // satoshis each, Bob should now see his balance as being 30k satoshis. - var bobChan *lnrpc.ActiveChannel + var bobChan *lnrpc.Channel var predErr error err = lntest.WaitPredicate(func() bool { bChan, err := getBobChanInfo() @@ -3670,7 +3670,7 @@ func testRevokedCloseRetributionZeroValueRemoteOutput(net *lntest.NetworkHarness // As we'll be querying the state of Carols's channels frequently we'll // create a closure helper function for the purpose. - getCarolChanInfo := func() (*lnrpc.ActiveChannel, error) { + getCarolChanInfo := func() (*lnrpc.Channel, error) { req := &lnrpc.ListChannelsRequest{} carolChannelInfo, err := carol.ListChannels(ctxb, req) if err != nil { @@ -3889,7 +3889,7 @@ func testRevokedCloseRetributionRemoteHodl(net *lntest.NetworkHarness, // As we'll be querying the state of Carol's channels frequently we'll // create a closure helper function for the purpose. - getCarolChanInfo := func() (*lnrpc.ActiveChannel, error) { + getCarolChanInfo := func() (*lnrpc.Channel, error) { req := &lnrpc.ListChannelsRequest{} carolChannelInfo, err := carol.ListChannels(ctxb, req) if err != nil { @@ -4829,7 +4829,7 @@ func testAsyncPayments(net *lntest.NetworkHarness, t *harnessTest) { // As we'll be querying the channels state frequently we'll // create a closure helper function for the purpose. - getChanInfo := func(node *lntest.HarnessNode) (*lnrpc.ActiveChannel, error) { + getChanInfo := func(node *lntest.HarnessNode) (*lnrpc.Channel, error) { req := &lnrpc.ListChannelsRequest{} channelInfo, err := node.ListChannels(ctxb, req) if err != nil { @@ -5012,7 +5012,7 @@ func testBidirectionalAsyncPayments(net *lntest.NetworkHarness, t *harnessTest) // As we'll be querying the channels state frequently we'll // create a closure helper function for the purpose. - getChanInfo := func(node *lntest.HarnessNode) (*lnrpc.ActiveChannel, error) { + getChanInfo := func(node *lntest.HarnessNode) (*lnrpc.Channel, error) { req := &lnrpc.ListChannelsRequest{} channelInfo, err := node.ListChannels(ctxb, req) if err != nil { diff --git a/lntest/harness.go b/lntest/harness.go index 971148d7..074a0ca0 100644 --- a/lntest/harness.go +++ b/lntest/harness.go @@ -718,7 +718,7 @@ func (n *NetworkHarness) CloseChannel(ctx context.Context, // channel, and the other to check if a channel is active or // not. filterChannel := func(node *HarnessNode, - op wire.OutPoint) (*lnrpc.ActiveChannel, error) { + op wire.OutPoint) (*lnrpc.Channel, error) { listResp, err := node.ListChannels(ctx, listReq) if err != nil { return nil, err