routing: allow specifying a fee limit during route construction

This commit is contained in:
Wilmer Paulino
2018-04-19 10:32:24 -04:00
parent 6a6de812ba
commit ddf8f2cb01
6 changed files with 143 additions and 36 deletions

View File

@@ -43,9 +43,9 @@ const (
// attempt timed out before we were able to successfully route an HTLC.
ErrPaymentAttemptTimeout
// ErrFeeCutoffExceeded is returned when the total fees of a route
// exceed the user-specified maximum payment for the fee.
ErrFeeCutoffExceeded
// ErrFeeLimitExceeded is returned when the total fees of a route exceed
// the user-specified fee limit.
ErrFeeLimitExceeded
)
// routerError is a structure that represent the error inside the routing package,