mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 01:36:24 +01:00
routing: add TODO in newRoute for more sanity checks
This commit is contained in:
parent
d17b11862b
commit
a0c2278a69
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue