mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-19 02:27:06 +01:00
multi/refactor: clarify blinded payment fee rate field name
This commit is contained in:
@@ -490,7 +490,7 @@ func unmarshalBlindedPayment(rpcPayment *lnrpc.BlindedPaymentPath) (
|
|||||||
BlindedPath: path,
|
BlindedPath: path,
|
||||||
CltvExpiryDelta: uint16(rpcPayment.TotalCltvDelta),
|
CltvExpiryDelta: uint16(rpcPayment.TotalCltvDelta),
|
||||||
BaseFee: uint32(rpcPayment.BaseFeeMsat),
|
BaseFee: uint32(rpcPayment.BaseFeeMsat),
|
||||||
ProportionalFee: uint32(
|
ProportionalFeeRate: uint32(
|
||||||
rpcPayment.ProportionalFeeMsat,
|
rpcPayment.ProportionalFeeMsat,
|
||||||
),
|
),
|
||||||
HtlcMinimum: rpcPayment.HtlcMinMsat,
|
HtlcMinimum: rpcPayment.HtlcMinMsat,
|
||||||
|
|||||||
@@ -36,9 +36,9 @@ type BlindedPayment struct {
|
|||||||
// blinded path.
|
// blinded path.
|
||||||
BaseFee uint32
|
BaseFee uint32
|
||||||
|
|
||||||
// ProportionalFee is the aggregated proportional fee for payments
|
// ProportionalFeeRate is the aggregated proportional fee rate for
|
||||||
// made over the blinded path.
|
// payments made over the blinded path.
|
||||||
ProportionalFee uint32
|
ProportionalFeeRate uint32
|
||||||
|
|
||||||
// CltvExpiryDelta is the total expiry delta for the blinded path. Note
|
// CltvExpiryDelta is the total expiry delta for the blinded path. Note
|
||||||
// this does not include the final cltv delta for the receiving node
|
// this does not include the final cltv delta for the receiving node
|
||||||
@@ -122,7 +122,7 @@ func (b *BlindedPayment) toRouteHints() RouteHints {
|
|||||||
MaxHTLC: lnwire.MilliSatoshi(b.HtlcMaximum),
|
MaxHTLC: lnwire.MilliSatoshi(b.HtlcMaximum),
|
||||||
FeeBaseMSat: lnwire.MilliSatoshi(b.BaseFee),
|
FeeBaseMSat: lnwire.MilliSatoshi(b.BaseFee),
|
||||||
FeeProportionalMillionths: lnwire.MilliSatoshi(
|
FeeProportionalMillionths: lnwire.MilliSatoshi(
|
||||||
b.ProportionalFee,
|
b.ProportionalFeeRate,
|
||||||
),
|
),
|
||||||
ToNodePubKey: func() route.Vertex {
|
ToNodePubKey: func() route.Vertex {
|
||||||
return route.NewVertex(
|
return route.NewVertex(
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ func TestBlindedPaymentToHints(t *testing.T) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
BaseFee: baseFee,
|
BaseFee: baseFee,
|
||||||
ProportionalFee: ppmFee,
|
ProportionalFeeRate: ppmFee,
|
||||||
CltvExpiryDelta: cltvDelta,
|
CltvExpiryDelta: cltvDelta,
|
||||||
HtlcMinimum: htlcMin,
|
HtlcMinimum: htlcMin,
|
||||||
HtlcMaximum: htlcMax,
|
HtlcMaximum: htlcMax,
|
||||||
|
|||||||
Reference in New Issue
Block a user