mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-24 18:44:08 +02:00
record: stricter type for PaymentRelayInfo.BaseFee
In this commit, we update the PaymentRelayInfo struct's BaseFee member to use a stricter type (lnwire.MilliSatoshi) instead of an ambigious uint32.
This commit is contained in:
@@ -658,7 +658,9 @@ func (b *blindedForwardTest) createBlindedRoute(hops []*forwardingEdge,
|
||||
// Set the relay information for this edge based on its policy.
|
||||
delta := uint16(node.edge.TimeLockDelta)
|
||||
relayInfo := &record.PaymentRelayInfo{
|
||||
BaseFee: uint32(node.edge.FeeBaseMsat),
|
||||
BaseFee: lnwire.MilliSatoshi(
|
||||
node.edge.FeeBaseMsat,
|
||||
),
|
||||
FeeRate: uint32(node.edge.FeeRateMilliMsat),
|
||||
CltvExpiryDelta: delta,
|
||||
}
|
||||
|
Reference in New Issue
Block a user