routing/route+multi: remove redundant TotalFees field

Instead get it on demand using method TotalFees().
This commit is contained in:
Johan T. Halseth
2019-05-15 14:37:58 +02:00
parent 27ae22fa6c
commit 15bed506b1
8 changed files with 17 additions and 18 deletions

View File

@@ -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{