1
0

chore: fix some typos

Signed-off-by: tianzedavid <cuitianze@aliyun.com>
This commit is contained in:
tianzedavid
2025-02-13 00:34:04 +08:00
parent b097150806
commit c080d6531f
3 changed files with 3 additions and 3 deletions

View File

@@ -1416,7 +1416,7 @@ class Channel(AbstractChannel):
# nobody pays additional HTLC transaction fees # nobody pays additional HTLC transaction fees
return min(max_send_msat, htlc_trim_threshold_msat - 1) return min(max_send_msat, htlc_trim_threshold_msat - 1)
else: else:
# somebody has to pay for the additonal HTLC transaction fees # somebody has to pay for the additional HTLC transaction fees
if sender == initiator: if sender == initiator:
return max_send_msat - htlc_fee_msat return max_send_msat - htlc_fee_msat
else: else:

View File

@@ -215,7 +215,7 @@ class SwapManager(Logger):
for k, swap in self.swaps.items(): for k, swap in self.swaps.items():
if swap.prepay_hash is not None: if swap.prepay_hash is not None:
self.prepayments[swap.prepay_hash] = bytes.fromhex(k) 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() self.is_initialized = asyncio.Event()
def start_network(self, network: 'Network'): def start_network(self, network: 'Network'):

View File

@@ -853,7 +853,7 @@ class TestLNUtil(ElectrumTestCase):
cltv_abs=test_htlc['expiry'], cltv_abs=test_htlc['expiry'],
htlc_id=None, htlc_id=None,
timestamp=0) 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? # 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): 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) test_htlcs[test_index] = ScriptHtlc(htlc_script, update_add_htlc)