From 9c5edad51bf95df3c75eda8c29d762132827b104 Mon Sep 17 00:00:00 2001 From: shuoer86 <129674997+shuoer86@users.noreply.github.com> Date: Fri, 12 Jan 2024 20:46:16 +0800 Subject: [PATCH 1/5] Fix typo CONTRIBUTING.md --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 78c515007d0..b57217165e6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -148,7 +148,7 @@ Security -------- Security is the primary focus of `rust-lightning`; disclosure of security -vulnerabilites helps prevent user loss of funds. If you believe a vulnerability +vulnerabilities helps prevent user loss of funds. If you believe a vulnerability may affect other Lightning implementations, please inform them. You can find further information on submitting (possible) vulnerabilities in the From 8cd48060d77ec6adc36acb910a12c2e8974998c5 Mon Sep 17 00:00:00 2001 From: shuoer86 <129674997+shuoer86@users.noreply.github.com> Date: Fri, 12 Jan 2024 20:46:26 +0800 Subject: [PATCH 2/5] Fix typo lightning-invoice/src/ser.rs --- lightning-invoice/src/ser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning-invoice/src/ser.rs b/lightning-invoice/src/ser.rs index fe42f72b653..dc63783bfa3 100644 --- a/lightning-invoice/src/ser.rs +++ b/lightning-invoice/src/ser.rs @@ -52,7 +52,7 @@ impl<'a, W: WriteBase32> BytesToBase32<'a, W> { } // Combine all bits from buffer with enough bits from this rounds byte so that they fill - // a u5. Save reamining bits from byte to buffer. + // a u5. Save remaining bits from byte to buffer. let from_buffer = self.buffer >> 3; let from_byte = byte >> (3 + self.buffer_bits); // buffer_bits <= 4 From 896477d33d74876df591370f70a9b1a5036625a8 Mon Sep 17 00:00:00 2001 From: shuoer86 <129674997+shuoer86@users.noreply.github.com> Date: Fri, 12 Jan 2024 20:46:33 +0800 Subject: [PATCH 3/5] Fix typo lightning/src/ln/peer_handler.rs --- lightning/src/ln/peer_handler.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lightning/src/ln/peer_handler.rs b/lightning/src/ln/peer_handler.rs index 6ffffec4dd0..9a9aea9ae97 100644 --- a/lightning/src/ln/peer_handler.rs +++ b/lightning/src/ln/peer_handler.rs @@ -1609,7 +1609,7 @@ impl::Target as wire::CustomMessageReader>::CustomMessage>::Error(msg)); peers_to_disconnect.insert(node_id, msg); @@ -2225,7 +2225,7 @@ impl Date: Fri, 12 Jan 2024 20:46:40 +0800 Subject: [PATCH 4/5] Fix typo lightning/src/routing/router.rs --- lightning/src/routing/router.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lightning/src/routing/router.rs b/lightning/src/routing/router.rs index 277661862e3..485fd239128 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; } From fff6616b7c244e23da320db83e2e4cc996ee7bfb Mon Sep 17 00:00:00 2001 From: shuoer86 <129674997+shuoer86@users.noreply.github.com> Date: Fri, 12 Jan 2024 20:46:47 +0800 Subject: [PATCH 5/5] Fix typo lightning/src/util/wakers.rs --- lightning/src/util/wakers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning/src/util/wakers.rs b/lightning/src/util/wakers.rs index 37c036da959..14e6bbe64a2 100644 --- a/lightning/src/util/wakers.rs +++ b/lightning/src/util/wakers.rs @@ -491,7 +491,7 @@ mod tests { } // Rather annoyingly, there's no safe way in Rust std to construct a Waker despite it being - // totally possible to construct from a trait implementation (though somewhat less effecient + // totally possible to construct from a trait implementation (though somewhat less efficient // compared to a raw VTable). Instead, we have to write out a lot of boilerplate to build a // waker, which we do here with a trivial Arc data element to track woke-ness. const WAKER_V_TABLE: RawWakerVTable = RawWakerVTable::new(waker_clone, wake, wake_by_ref, drop);