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

+1 -1
View File
@@ -199,7 +199,7 @@ func TestFindRoutesWithFeeLimit(t *testing.T) {
t.Fatalf("unable to find any routes: %v", err)
}
if route.TotalFees > restrictions.FeeLimit {
if route.TotalFees() > restrictions.FeeLimit {
t.Fatalf("route exceeded fee limit: %v", spew.Sdump(route))
}