]> git.bitcoin.ninja Git - rust-lightning/commit
Add methods to count total fees and total amount in a Route #999
authorGalder Zamarreño <galder@zamarreno.com>
Fri, 27 Aug 2021 18:22:26 +0000 (19:22 +0100)
committerGalder Zamarreño <galder@zamarreno.com>
Tue, 21 Sep 2021 05:44:20 +0000 (07:44 +0200)
commit03bb808e583bba1b213c8b7992df9c28c8f237dc
tree3181c55c9c42d666b2247aa179c628e4144ed5e1
parent4368b56eb6a0a00b2181c13cadf55ab4a0c9f9a8
Add methods to count total fees and total amount in a Route #999

* Added `get_total_fees` method to route,
to calculate all the fees paid accross each path.
* Added `get_total_amount` method to route,
to calculate the total of actual amounts paid in each path.
lightning/src/routing/router.rs