routing/route+multi: remove redundant TotalFees field

Instead get it on demand using method TotalFees().
This commit is contained in:
Johan T. Halseth committed 2019-05-16 23:58:32 +02:00
1 parent 27ae22fa6c
commit 15bed506b1
8 files changed
+17 -18

No files matched your search

+2 -3
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{