From c080d6531fe5bafbea5951519da89abe1af46a9e Mon Sep 17 00:00:00 2001 From: tianzedavid Date: Thu, 13 Feb 2025 00:34:04 +0800 Subject: [PATCH] chore: fix some typos Signed-off-by: tianzedavid --- electrum/lnchannel.py | 2 +- electrum/submarine_swaps.py | 2 +- tests/test_lnutil.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/electrum/lnchannel.py b/electrum/lnchannel.py index bf48259dc372..02df7d6b74ee 100644 --- a/electrum/lnchannel.py +++ b/electrum/lnchannel.py @@ -1416,7 +1416,7 @@ def consider_ctx(*, ctx_owner: HTLCOwner, is_htlc_dust: bool) -> int: # nobody pays additional HTLC transaction fees return min(max_send_msat, htlc_trim_threshold_msat - 1) else: - # somebody has to pay for the additonal HTLC transaction fees + # somebody has to pay for the additional HTLC transaction fees if sender == initiator: return max_send_msat - htlc_fee_msat else: diff --git a/electrum/submarine_swaps.py b/electrum/submarine_swaps.py index 5f36f1fd98bb..08873d49b90b 100644 --- a/electrum/submarine_swaps.py +++ b/electrum/submarine_swaps.py @@ -215,7 +215,7 @@ def __init__(self, *, wallet: 'Abstract_Wallet', lnworker: 'LNWallet'): for k, swap in self.swaps.items(): if swap.prepay_hash is not None: self.prepayments[swap.prepay_hash] = bytes.fromhex(k) - self.is_server = False # overriden by swapserver plugin if enabled + self.is_server = False # overridden by swapserver plugin if enabled self.is_initialized = asyncio.Event() def start_network(self, network: 'Network'): diff --git a/tests/test_lnutil.py b/tests/test_lnutil.py index 79097fff4312..77711771f317 100644 --- a/tests/test_lnutil.py +++ b/tests/test_lnutil.py @@ -853,7 +853,7 @@ def _test_commitment_tx_anchors_test_vectors(self): cltv_abs=test_htlc['expiry'], htlc_id=None, timestamp=0) - # only add htlcs whose spending transaction creates above-dust ouputs + # only add htlcs whose spending transaction creates above-dust outputs # TODO: should we include this check in make_commitment? if test_htlc['amount'] // 1000 >= (threshold_sat_received if test_htlc['incoming'] else threshold_sat_offered): test_htlcs[test_index] = ScriptHtlc(htlc_script, update_add_htlc)