From: Valentine Wallace Date: Thu, 27 Oct 2022 20:58:30 +0000 (-0400) Subject: Fix inaccurate comment in InvoicePayer X-Git-Tag: v0.0.113~57^2~3 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=59e24bd176de5ad4610c0a856336afb6ea92bf78;p=rust-lightning Fix inaccurate comment in InvoicePayer --- diff --git a/lightning-invoice/src/payment.rs b/lightning-invoice/src/payment.rs index 4b2a682b3..1b3177adf 100644 --- a/lightning-invoice/src/payment.rs +++ b/lightning-invoice/src/payment.rs @@ -606,9 +606,8 @@ where self.payment_cache.lock().unwrap().remove(payment_hash); } - /// Given a [`PaymentHash`], this function looks up inflight path attempts in the payment_cache. - /// Then, it uses the path information inside the cache to construct a HashMap mapping a channel's - /// short channel id and direction to the amount being sent through it. + /// Use path information in the payment_cache to construct a HashMap mapping a channel's short + /// channel id and direction to the amount being sent through it. /// /// This function should be called whenever we need information about currently used up liquidity /// across payments.