Merge pull request #3081 from halseth/route-remove-totalfees

routing/route+multi: remove redundant TotalFees field
This commit is contained in:
Johan T. Halseth authored and GitHub committed 2019-05-20 15:00:01 +02:00
commit 2c1c29e060
8 files changed
+17 -18

No files matched your search

+1 -1
View File
@@ -198,7 +198,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))
}