]> git.bitcoin.ninja Git - rust-lightning/commit
Consider `RouteParameters::max_total_routing_fee_msat` in `get_route`
authorElias Rohrer <dev@tnull.de>
Fri, 14 Jul 2023 11:25:33 +0000 (13:25 +0200)
committerElias Rohrer <dev@tnull.de>
Tue, 26 Sep 2023 07:44:05 +0000 (09:44 +0200)
commitca40d8a6fb5b220db443748fa90dfc1bd8e7d99b
treed712965057ae8a59c7effc232be66df3a72ed4d1
parentd7e2ff62203ca5f09cc074bd8b55ca2e09706e03
Consider `RouteParameters::max_total_routing_fee_msat` in `get_route`

We exclude any candidate hops if we find that using them would let the
aggregated path routing fees exceed `max_total_routing_fee_msat`.

Moreover, we return an error if the aggregated fees over all paths of
the selected route would surpass `max_total_routing_fee_msat`.
lightning/src/routing/router.rs