From: shuoer86 <129674997+shuoer86@users.noreply.github.com> Date: Fri, 12 Jan 2024 12:46:40 +0000 (+0800) Subject: Fix typo lightning/src/routing/router.rs X-Git-Tag: v0.0.120~6^2~1 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=9c22a48a49b3d731cc92c3e273ef2888ddc705e2;p=rust-lightning Fix typo lightning/src/routing/router.rs --- diff --git a/lightning/src/routing/router.rs b/lightning/src/routing/router.rs index 277661862..485fd2391 100644 --- a/lightning/src/routing/router.rs +++ b/lightning/src/routing/router.rs @@ -2706,7 +2706,7 @@ where L::Target: Logger { } } - // Means we succesfully traversed from the payer to the payee, now + // Means we successfully traversed from the payer to the payee, now // save this path for the payment route. Also, update the liquidity // remaining on the used hops, so that we take them into account // while looking for more paths. @@ -7803,7 +7803,7 @@ mod tests { fn do_min_htlc_overpay_violates_max_htlc(blinded_payee: bool) { // Test that if overpaying to meet a later hop's min_htlc and causes us to violate an earlier // hop's max_htlc, we don't consider that candidate hop valid. Previously we would add this hop - // to `targets` and build an invalid path with it, and subsquently hit a debug panic asserting + // to `targets` and build an invalid path with it, and subsequently hit a debug panic asserting // that the used liquidity for a hop was less than its available liquidity limit. let secp_ctx = Secp256k1::new(); let logger = Arc::new(ln_test_utils::TestLogger::new()); @@ -8452,7 +8452,7 @@ pub(crate) mod bench_utils { } break; } - // If we couldn't find a path with a higer amount, reduce and try again. + // If we couldn't find a path with a higher amount, reduce and try again. score_amt /= 100; }