looprpc: add SwapPublicationDeadline to client proto

cmd/loopd swapclient_server: use SwapPublicationDeadline from LoopOutRequest
This commit is contained in:
Johan T. Halseth 2019-11-14 10:35:32 +01:00
parent c70d0deecb
commit ea1f9ff8ba
No known key found for this signature in database
GPG key ID: 15BAADA29DA20D26
4 changed files with 106 additions and 72 deletions

View file

@ -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