chore: fix some typos in comments (#9014)
Signed-off-by: fuyangpengqi <995764973@qq.com>
This commit is contained in:
@@ -176,7 +176,7 @@ android.manifest.intent_filters = contrib/android/bitcoin_intent.xml
|
|||||||
# (str) launchMode to set for the main activity
|
# (str) launchMode to set for the main activity
|
||||||
android.manifest.launch_mode = singleTask
|
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
|
#android.add_libs_armeabi = lib/android/*.so
|
||||||
|
|
||||||
# (bool) Indicate whether the screen should stay on
|
# (bool) Indicate whether the screen should stay on
|
||||||
|
|||||||
@@ -992,7 +992,7 @@ class Peer(Logger):
|
|||||||
# The receiving node MAY fail the channel if:
|
# The receiving node MAY fail the channel if:
|
||||||
# option_channel_type was negotiated but the message doesn't include a channel_type
|
# option_channel_type was negotiated but the message doesn't include a channel_type
|
||||||
if self.is_channel_type() and channel_type is None:
|
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,
|
# MUST fail the channel if it supports channel_type,
|
||||||
# channel_type was set, and the type is not suitable.
|
# channel_type was set, and the type is not suitable.
|
||||||
elif self.is_channel_type() and channel_type is not None:
|
elif self.is_channel_type() and channel_type is not None:
|
||||||
@@ -2325,7 +2325,7 @@ class Peer(Logger):
|
|||||||
raise Exception(f"received shutdown in unexpected {chan.peer_state=!r}")
|
raise Exception(f"received shutdown in unexpected {chan.peer_state=!r}")
|
||||||
their_scriptpubkey = payload['scriptpubkey']
|
their_scriptpubkey = payload['scriptpubkey']
|
||||||
their_upfront_scriptpubkey = chan.config[REMOTE].upfront_shutdown_script
|
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 self.is_upfront_shutdown_script() and their_upfront_scriptpubkey:
|
||||||
if not (their_scriptpubkey == their_upfront_scriptpubkey):
|
if not (their_scriptpubkey == their_upfront_scriptpubkey):
|
||||||
await self.send_warning(
|
await self.send_warning(
|
||||||
|
|||||||
@@ -282,7 +282,7 @@ class Coldcard_KeyStore(Hardware_KeyStore):
|
|||||||
self.is_requesting_to_be_rewritten_to_wallet_file = True
|
self.is_requesting_to_be_rewritten_to_wallet_file = True
|
||||||
|
|
||||||
def get_client(self, *args, **kwargs):
|
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
|
# - not called during probing/setup
|
||||||
# - will fail if indicated device can't produce the xpub (at derivation) expected
|
# - will fail if indicated device can't produce the xpub (at derivation) expected
|
||||||
client = super().get_client(*args, **kwargs) # type: Optional[CKCCClient]
|
client = super().get_client(*args, **kwargs) # type: Optional[CKCCClient]
|
||||||
|
|||||||
@@ -556,7 +556,7 @@ class Plugin(RevealerPlugin):
|
|||||||
painter.drawText(600,2077, _("Instructions:"))
|
painter.drawText(600,2077, _("Instructions:"))
|
||||||
font = QFont('Source Sans Pro', 7, QFont.Normal)
|
font = QFont('Source Sans Pro', 7, QFont.Normal)
|
||||||
painter.setFont(font)
|
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, 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 "
|
painter.drawText(700, 2377, _("3. Press slightly the Revealer against the paper and read the numbers that best "
|
||||||
"match on the opposite sides. "))
|
"match on the opposite sides. "))
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ async def node_flag_stats(opt_flag: LnFeatures, presync: False):
|
|||||||
with wallet.lnworker.channel_db.lock:
|
with wallet.lnworker.channel_db.lock:
|
||||||
nodes = wallet.lnworker.channel_db._nodes.copy()
|
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_opt = 0
|
||||||
n_req = 0
|
n_req = 0
|
||||||
print(f"analyzing {len(nodes.keys())} nodes")
|
print(f"analyzing {len(nodes.keys())} nodes")
|
||||||
|
|||||||
Reference in New Issue
Block a user