Browse Source

Merge pull request #9008 from CoolCu/master

chore: fix some typos in comments
master
ThomasV 2 years ago committed by GitHub
parent
commit
9c94eb99f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      electrum/lnpeer.py
  2. 2
      electrum/plugins/coldcard/README.md
  3. 4
      electrum/plugins/coldcard/coldcard.py

2
electrum/lnpeer.py

@ -1503,7 +1503,7 @@ class Peer(Logger):
forwarding_enabled = self.network.config.EXPERIMENTAL_LN_FORWARD_PAYMENTS forwarding_enabled = self.network.config.EXPERIMENTAL_LN_FORWARD_PAYMENTS
if forwarding_enabled and chan.short_channel_id: if forwarding_enabled and chan.short_channel_id:
# send channel_update of outgoing edge to peer, # send channel_update of outgoing edge to peer,
# so that channel can be used to to receive payments # so that channel can be used to receive payments
self.logger.info(f"sending channel update for outgoing edge ({chan.get_id_for_log()})") self.logger.info(f"sending channel update for outgoing edge ({chan.get_id_for_log()})")
chan_upd = chan.get_outgoing_gossip_channel_update() chan_upd = chan.get_outgoing_gossip_channel_update()
self.transport.send_bytes(chan_upd) self.transport.send_bytes(chan_upd)

2
electrum/plugins/coldcard/README.md

@ -13,7 +13,7 @@ this reason, all PIN code entry is done directly on the device.
Coldcard does not appear on the USB bus until unlocked with appropriate Coldcard does not appear on the USB bus until unlocked with appropriate
PIN. Initial setup, and seed generation must be done offline. PIN. Initial setup, and seed generation must be done offline.
Coldcard uses the standard for unsigned tranasctions: Coldcard uses the standard for unsigned transactions:
PSBT = Partially Signed Bitcoin Transaction = BIP174 PSBT = Partially Signed Bitcoin Transaction = BIP174

4
electrum/plugins/coldcard/coldcard.py

@ -105,7 +105,7 @@ class CKCCClient(HardwareClientBase):
if ((self._expected_device is not None) if ((self._expected_device is not None)
or (self.dev.master_fingerprint != expected_xfp) or (self.dev.master_fingerprint != expected_xfp)
or (self.dev.master_xpub != expected_xpub)): or (self.dev.master_xpub != expected_xpub)):
# probably indicating programing error, not hacking # probably indicating programming error, not hacking
_logger.info(f"xpubs. reported by device: {self.dev.master_xpub}. " _logger.info(f"xpubs. reported by device: {self.dev.master_xpub}. "
f"stored in file: {expected_xpub}") f"stored in file: {expected_xpub}")
raise RuntimeError("Expecting %s but that's not what's connected?!" % raise RuntimeError("Expecting %s but that's not what's connected?!" %
@ -239,7 +239,7 @@ class CKCCClient(HardwareClientBase):
@runs_in_hwd_thread @runs_in_hwd_thread
def sign_transaction_poll(self): def sign_transaction_poll(self):
# poll device... if user has approved, will get tuple: (legnth, checksum) else None # poll device... if user has approved, will get tuple: (length, checksum) else None
return self.dev.send_recv(CCProtocolPacker.get_signed_txn(), timeout=None) return self.dev.send_recv(CCProtocolPacker.get_signed_txn(), timeout=None)
@runs_in_hwd_thread @runs_in_hwd_thread

Loading…
Cancel
Save