openchannels: add taproot address type, fix log

This commit is contained in:
bitromortac 2022-10-22 09:44:26 +02:00
parent e3166bd448
commit a3b2077feb
No known key found for this signature in database
GPG key ID: 1965063FC13BEBE2
2 changed files with 3 additions and 2 deletions

View file

@ -6,6 +6,7 @@ from typing import Tuple
class AddressType(Enum):
WITNESS_PUBKEY_HASH = 0
NESTED_PUBKEY_HASH = 1
TAPROOT_PUBKEY = 4
@dataclass(order=True)

View file

@ -82,9 +82,9 @@ class ChannelOpener(object):
# 1. connect to nodes
try:
pubkeys_succeeded = self.node._connect_nodes(pubkeys)
except ConnectionRefusedError:
except ConnectionRefusedError as e:
logger.info(">>> Could not connect to all nodes. Try to connect "
"manually via 'lncli connect', then rerun.")
f"manually via 'lncli connect', then rerun. {e}")
return
assert len(pubkeys) == len(pubkeys_succeeded)