mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-24 01:24:25 +01:00
routing/route+multi: remove redundant TotalFees field
Instead get it on demand using method TotalFees().
This commit is contained in:
@@ -185,8 +185,8 @@ func calculateFeeLimit(feeLimit *lnrpc.FeeLimit,
|
||||
func (r *RouterBackend) MarshallRoute(route *route.Route) *lnrpc.Route {
|
||||
resp := &lnrpc.Route{
|
||||
TotalTimeLock: route.TotalTimeLock,
|
||||
TotalFees: int64(route.TotalFees.ToSatoshis()),
|
||||
TotalFeesMsat: int64(route.TotalFees),
|
||||
TotalFees: int64(route.TotalFees().ToSatoshis()),
|
||||
TotalFeesMsat: int64(route.TotalFees()),
|
||||
TotalAmt: int64(route.TotalAmount.ToSatoshis()),
|
||||
TotalAmtMsat: int64(route.TotalAmount),
|
||||
Hops: make([]*lnrpc.Hop, len(route.Hops)),
|
||||
|
||||
Reference in New Issue
Block a user