]> git.bitcoin.ninja Git - rust-lightning/commit
Add PaymentHash parameter to Router::find_route
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 12 Nov 2021 03:47:59 +0000 (21:47 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 16 Nov 2021 19:57:58 +0000 (13:57 -0600)
commit592bfd7c58e73eaa5cfd5032d982883878510037
tree253afff5dbf3c4e69ddec849b702f67ea3e83045
parent756b3051573ed9b4e04cc2227af93c45fe0d8104
Add PaymentHash parameter to Router::find_route

Implementations of Router may need the payment hash in order to look up
pre-computed routes from a probe for a given payment. Add a PaymentHash
parameter to Router::find_route to allow for this.
lightning-invoice/src/payment.rs
lightning-invoice/src/utils.rs