rpc: properly pass through the FinalCltvDelta param from the proto
This commit is contained in:
parent
5b4b6f9c0e
commit
bfbec1c5d3
@ -1213,6 +1213,7 @@ func (r *rpcServer) PendingChannels(ctx context.Context,
|
|||||||
// and map the db struct to the proto response.
|
// and map the db struct to the proto response.
|
||||||
pendingOpenChannels, err := r.server.chanDB.FetchPendingChannels()
|
pendingOpenChannels, err := r.server.chanDB.FetchPendingChannels()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
rpcsLog.Errorf("unable to fetch pending channels: %v", err)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
resp.PendingOpenChannels = make([]*lnrpc.PendingChannelsResponse_PendingOpenChannel,
|
resp.PendingOpenChannels = make([]*lnrpc.PendingChannelsResponse_PendingOpenChannel,
|
||||||
@ -1256,6 +1257,7 @@ func (r *rpcServer) PendingChannels(ctx context.Context,
|
|||||||
// can populate these fields within the response.
|
// can populate these fields within the response.
|
||||||
pendingCloseChannels, err := r.server.chanDB.FetchClosedChannels(true)
|
pendingCloseChannels, err := r.server.chanDB.FetchClosedChannels(true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
rpcsLog.Errorf("unable to fetch closed channels: %v", err)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
for _, pendingClose := range pendingCloseChannels {
|
for _, pendingClose := range pendingCloseChannels {
|
||||||
@ -1644,6 +1646,7 @@ func (r *rpcServer) SendPayment(paymentStream lnrpc.Lightning_SendPaymentServer)
|
|||||||
)
|
)
|
||||||
p.dest = nextPayment.Dest
|
p.dest = nextPayment.Dest
|
||||||
p.pHash = nextPayment.PaymentHash
|
p.pHash = nextPayment.PaymentHash
|
||||||
|
p.cltvDelta = uint16(nextPayment.FinalCltvDelta)
|
||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
|
Loading…
Reference in New Issue
Block a user