Skip to content

Commit deca783

Browse files
chore: fix some minor issues in the comments
Signed-off-by: shangchenglumetro <[email protected]>
1 parent ce90d8f commit deca783

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

electrum/lnworker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,7 @@ async def open_channel_just_in_time(
12711271
# if an exception is raised during negotiation, we raise an OnionRoutingFailure.
12721272
# this will cancel the incoming HTLC
12731273

1274-
# prevent settling the htlc until the channel opening was successfull so we can fail it if needed
1274+
# prevent settling the htlc until the channel opening was successful so we can fail it if needed
12751275
self.dont_settle_htlcs[payment_hash.hex()] = None
12761276
try:
12771277
funding_sat = 2 * (next_amount_msat_htlc // 1000) # try to fully spend htlcs
@@ -1938,7 +1938,7 @@ def suggest_payment_splits(
19381938
(chan.channel_id, chan.node_id): ( int(chan.available_to_spend(HTLCOwner.LOCAL)), chan.htlc_slots_left(HTLCOwner.LOCAL))
19391939
for chan in my_active_channels
19401940
}
1941-
# if we have a direct channel it's preferrable to send a single part directly through this
1941+
# if we have a direct channel it's preferable to send a single part directly through this
19421942
# channel, so this bool will disable excluding single part payments
19431943
have_direct_channel = any(chan.node_id == receiver_pubkey for chan in my_active_channels)
19441944
self.logger.info(f"channels_with_funds: {channels_with_funds}, {have_direct_channel=}")

electrum/plugins/jade/jadepy/jade.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ def get_registered_descriptor(self, descriptor_name):
10271027
dict
10281028
Description of registered descriptor wallet identified by registration name.
10291029
Contains keys:
1030-
descriptor_name - str, name of descritpor registration
1030+
descriptor_name - str, name of descriptor registration
10311031
descriptor - str, descriptor output script, may contain substitution placeholders
10321032
datavalues - dict containing placeholders for substitution into script
10331033
"""

electrum/transaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1951,7 +1951,7 @@ def clear_fields_when_finalized():
19511951
self.sighash = None
19521952
self.bip32_paths = {}
19531953
self.redeem_script = None
1954-
# FIXME: side effect interfers with make_witness
1954+
# FIXME: side effect interferes with make_witness
19551955
# self.witness_script = None
19561956

19571957
if self.script_sig is not None and self.witness is not None:

0 commit comments

Comments
 (0)