From cb56f0873dc65dccfd3111d1ca675bc8991a31bb Mon Sep 17 00:00:00 2001 From: f321x Date: Tue, 4 Mar 2025 17:03:55 +0100 Subject: [PATCH] improve ChannelType option check --- electrum/lnpeer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/lnpeer.py b/electrum/lnpeer.py index 95dc1c786..1a3179211 100644 --- a/electrum/lnpeer.py +++ b/electrum/lnpeer.py @@ -1042,7 +1042,7 @@ class Peer(Logger, EventListener): raise Exception("sender has sent a channel type we don't support") if self.is_channel_type(): - is_zeroconf = channel_type & channel_type.OPTION_ZEROCONF + is_zeroconf = bool(channel_type & ChannelType.OPTION_ZEROCONF) if is_zeroconf and not self.network.config.ZEROCONF_TRUSTED_NODE.startswith(self.pubkey.hex()): raise Exception(f"not accepting zeroconf from node {self.pubkey}") else: