Skip to content

Commit

Permalink
chore: fix some typos in comments (#9014)
Browse files Browse the repository at this point in the history
Signed-off-by: fuyangpengqi <[email protected]>
  • Loading branch information
fuyangpengqi committed Apr 18, 2024
1 parent 9a7195d commit 91de8e7
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion contrib/android/buildozer_qml.spec
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ android.manifest.intent_filters = contrib/android/bitcoin_intent.xml
# (str) launchMode to set for the main activity
android.manifest.launch_mode = singleTask

# (list) Android additionnal libraries to copy into libs/armeabi
# (list) Android additional libraries to copy into libs/armeabi
#android.add_libs_armeabi = lib/android/*.so

# (bool) Indicate whether the screen should stay on
Expand Down
4 changes: 2 additions & 2 deletions electrum/lnpeer.py
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ async def on_open_channel(self, payload):
# The receiving node MAY fail the channel if:
# option_channel_type was negotiated but the message doesn't include a channel_type
if self.is_channel_type() and channel_type is None:
raise Exception("sender has advertized option_channel_type, but hasn't sent the channel type")
raise Exception("sender has advertised option_channel_type, but hasn't sent the channel type")
# MUST fail the channel if it supports channel_type,
# channel_type was set, and the type is not suitable.
elif self.is_channel_type() and channel_type is not None:
Expand Down Expand Up @@ -2325,7 +2325,7 @@ async def on_shutdown(self, chan: Channel, payload):
raise Exception(f"received shutdown in unexpected {chan.peer_state=!r}")
their_scriptpubkey = payload['scriptpubkey']
their_upfront_scriptpubkey = chan.config[REMOTE].upfront_shutdown_script
# BOLT-02 check if they use the upfront shutdown script they advertized
# BOLT-02 check if they use the upfront shutdown script they advertised
if self.is_upfront_shutdown_script() and their_upfront_scriptpubkey:
if not (their_scriptpubkey == their_upfront_scriptpubkey):
await self.send_warning(
Expand Down
2 changes: 1 addition & 1 deletion electrum/plugins/coldcard/coldcard.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def opportunistically_fill_in_missing_info_from_device(self, client: 'CKCCClient
self.is_requesting_to_be_rewritten_to_wallet_file = True

def get_client(self, *args, **kwargs):
# called when user tries to do something like view address, sign somthing.
# called when user tries to do something like view address, sign something.
# - not called during probing/setup
# - will fail if indicated device can't produce the xpub (at derivation) expected
client = super().get_client(*args, **kwargs) # type: Optional[CKCCClient]
Expand Down
2 changes: 1 addition & 1 deletion electrum/plugins/revealer/qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ def calibration_pdf(self, image):
painter.drawText(600,2077, _("Instructions:"))
font = QFont('Source Sans Pro', 7, QFont.Normal)
painter.setFont(font)
painter.drawText(700, 2177, _("1. Place this paper on a flat and well iluminated surface."))
painter.drawText(700, 2177, _("1. Place this paper on a flat and well illuminated surface."))
painter.drawText(700, 2277, _("2. Align your Revealer borderlines to the dashed lines on the top and left."))
painter.drawText(700, 2377, _("3. Press slightly the Revealer against the paper and read the numbers that best "
"match on the opposite sides. "))
Expand Down
2 changes: 1 addition & 1 deletion electrum/scripts/ln_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ async def node_flag_stats(opt_flag: LnFeatures, presync: False):
with wallet.lnworker.channel_db.lock:
nodes = wallet.lnworker.channel_db._nodes.copy()

# check how many nodes advertize opt/req flag in the gossip
# check how many nodes advertise opt/req flag in the gossip
n_opt = 0
n_req = 0
print(f"analyzing {len(nodes.keys())} nodes")
Expand Down

0 comments on commit 91de8e7

Please sign in to comment.