Browse Source

(trivial) reduce log spam during ln-channel-open

master
SomberNight 3 years ago
parent
commit
62ab6d9702
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/lnchannel.py
  2. 2
      electrum/lnwatcher.py
  3. 2
      electrum/transaction.py

2
electrum/lnchannel.py

@ -1647,7 +1647,7 @@ class Channel(AbstractChannel):
funding_idx = self.funding_outpoint.output_index
conf = funding_height.conf
if conf < self.funding_txn_minimum_depth():
self.logger.info(f"funding tx is still not at sufficient depth. actual depth: {conf}")
#self.logger.info(f"funding tx is still not at sufficient depth. actual depth: {conf}")
return False
assert conf > 0
# check funding_tx amount and script

2
electrum/lnwatcher.py

@ -212,7 +212,7 @@ class LNWatcher(Logger, EventListener):
if not self.adb.is_mine(address):
return
spenders = self.inspect_tx_candidate(funding_outpoint, 0)
# inspect_tx_candidate might have added new addresses, in which case we return ealy
# inspect_tx_candidate might have added new addresses, in which case we return early
if not self.adb.is_up_to_date():
return
funding_txid = funding_outpoint.split(':')[0]

2
electrum/transaction.py

@ -1945,7 +1945,7 @@ class PartialTransaction(Transaction):
break
if pubkey not in keypairs:
continue
_logger.info(f"adding signature for {pubkey}")
_logger.info(f"adding signature for {pubkey}. spending utxo {txin.prevout.to_str()}")
sec, compressed = keypairs[pubkey]
sig = self.sign_txin(i, sec, bip143_shared_txdigest_fields=bip143_shared_txdigest_fields)
self.add_signature_to_txin(txin_idx=i, signing_pubkey=pubkey, sig=sig)

Loading…
Cancel
Save