Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some typos #9555

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion electrum/lnchannel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion electrum/submarine_swaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_lnutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down