looprpc: add conf_target to loop in/out quote resp

This commit is contained in:
yyforyongyu 2021-03-04 17:39:00 +08:00
parent 0fa3625989
commit c4d46a24a0
No known key found for this signature in database
GPG key ID: 9BCD95C4FF296868
4 changed files with 211 additions and 169 deletions

View file

@ -426,6 +426,7 @@ func (s *swapClientServer) LoopOutQuote(ctx context.Context,
PrepayAmtSat: int64(quote.PrepayAmount),
SwapFeeSat: int64(quote.SwapFee),
SwapPaymentDest: quote.SwapPaymentDest[:],
ConfTarget: confTarget,
}, nil
}
@ -471,6 +472,7 @@ func (s *swapClientServer) GetLoopInQuote(ctx context.Context,
return &looprpc.InQuoteResponse{
HtlcPublishFeeSat: int64(quote.MinerFee),
SwapFeeSat: int64(quote.SwapFee),
ConfTarget: htlcConfTarget,
}, nil
}