mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
looprpc: add SwapPublicationDeadline to client proto
cmd/loopd swapclient_server: use SwapPublicationDeadline from LoopOutRequest
This commit is contained in:
parent
c70d0deecb
commit
ea1f9ff8ba
4 changed files with 106 additions and 72 deletions
|
|
@ -5,6 +5,7 @@ import (
|
|||
"errors"
|
||||
"fmt"
|
||||
"sort"
|
||||
"time"
|
||||
|
||||
"github.com/lightningnetwork/lnd/queue"
|
||||
|
||||
|
|
@ -76,6 +77,9 @@ func (s *swapClientServer) LoopOut(ctx context.Context,
|
|||
MaxSwapRoutingFee: btcutil.Amount(in.MaxSwapRoutingFee),
|
||||
MaxSwapFee: btcutil.Amount(in.MaxSwapFee),
|
||||
SweepConfTarget: sweepConfTarget,
|
||||
SwapPublicationDeadline: time.Unix(
|
||||
int64(in.SwapPublicationDeadline), 0,
|
||||
),
|
||||
}
|
||||
if in.LoopOutChannel != 0 {
|
||||
req.LoopOutChannel = &in.LoopOutChannel
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue