interface: rename charge->loop in

pull/75/head
Johan T. Halseth 5 years ago
parent ae3893c2d4
commit 2d1e41de5d
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -64,7 +64,7 @@ type OutRequest struct {
SweepConfTarget int32 SweepConfTarget int32
// LoopOutChannel optionally specifies the short channel id of the // LoopOutChannel optionally specifies the short channel id of the
// channel to uncharge. // channel to loop out.
LoopOutChannel *uint64 LoopOutChannel *uint64
} }
@ -149,7 +149,7 @@ type LoopInRequest struct {
// MaxSwapFee is the maximum we are willing to pay the server for the // MaxSwapFee is the maximum we are willing to pay the server for the
// swap. This value is not disclosed in the swap initiation call, but if // swap. This value is not disclosed in the swap initiation call, but if
// the server asks for a higher fee, we abort the swap. Typically this // the server asks for a higher fee, we abort the swap. Typically this
// value is taken from the response of the UnchargeQuote call. It // value is taken from the response of the LoopInQuote call. It
// includes the prepay amount. // includes the prepay amount.
MaxSwapFee btcutil.Amount MaxSwapFee btcutil.Amount
@ -157,7 +157,7 @@ type LoopInRequest struct {
// spent. If we publish the on-chain htlc and the fee estimate turns out // spent. If we publish the on-chain htlc and the fee estimate turns out
// higher than this value, we cancel the swap. // higher than this value, we cancel the swap.
// //
// MaxMinerFee is typically taken from the response of the UnchargeQuote // MaxMinerFee is typically taken from the response of the LoopInQuote
// call. // call.
MaxMinerFee btcutil.Amount MaxMinerFee btcutil.Amount
@ -166,7 +166,7 @@ type LoopInRequest struct {
HtlcConfTarget int32 HtlcConfTarget int32
// LoopInChannel optionally specifies the short channel id of the // LoopInChannel optionally specifies the short channel id of the
// channel to charge. // channel to loop in.
LoopInChannel *uint64 LoopInChannel *uint64
// ExternalHtlc specifies whether the htlc is published by an external // ExternalHtlc specifies whether the htlc is published by an external
@ -174,7 +174,7 @@ type LoopInRequest struct {
ExternalHtlc bool ExternalHtlc bool
} }
// LoopInTerms are the server terms on which it executes charge swaps. // LoopInTerms are the server terms on which it executes loop in swaps.
type LoopInTerms struct { type LoopInTerms struct {
// MinSwapAmount is the minimum amount that the server requires for a // MinSwapAmount is the minimum amount that the server requires for a
// swap. // swap.

Loading…
Cancel
Save