mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-11 06:37:21 +01:00
routing/route+multi: remove redundant TotalFees field
Instead get it on demand using method TotalFees().
This commit is contained in:
@@ -55,8 +55,6 @@ func TestQueryRoutes(t *testing.T) {
|
||||
}},
|
||||
}
|
||||
|
||||
rt := &route.Route{}
|
||||
|
||||
findRoute := func(source, target route.Vertex,
|
||||
amt lnwire.MilliSatoshi, restrictions *routing.RestrictParams,
|
||||
finalExpiry ...uint16) (*route.Route, error) {
|
||||
@@ -95,7 +93,8 @@ func TestQueryRoutes(t *testing.T) {
|
||||
t.Fatal("unexpected ignored node")
|
||||
}
|
||||
|
||||
return rt, nil
|
||||
hops := []*route.Hop{&route.Hop{}}
|
||||
return route.NewRouteFromHops(amt, 144, source, hops)
|
||||
}
|
||||
|
||||
backend := &RouterBackend{
|
||||
|
||||
Reference in New Issue
Block a user