From a0c2278a69a8b6d4cb4175659f5cbf9006f6ca61 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Sun, 16 Apr 2017 15:24:11 -0700 Subject: [PATCH] routing: add TODO in newRoute for more sanity checks --- routing/pathfind.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/routing/pathfind.go b/routing/pathfind.go index 5ccc2911a..ba611475e 100644 --- a/routing/pathfind.go +++ b/routing/pathfind.go @@ -168,6 +168,9 @@ func newRoute(amtToSend btcutil.Amount, pathEdges []*ChannelHop) (*Route, error) Hops: make([]*Hop, len(pathEdges)), } + // TODO(roasbeef): need to do sanity check to ensure we don't make a + // "dust" payment: over x% of money sending to fees + // The running amount is the total amount of satoshis required at this // point in the route. We start this value at the amount we want to // send to the destination. This value will then get successively