tfollow-up previous commit - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit aa32e31a3dbd9a6517ae40187b1160940f764958 DIR parent 06dfe1699cca8d116914138147301b0ec9b289bc HTML Author: ThomasV <thomasv@electrum.org> Date: Fri, 3 Apr 2020 18:54:02 +0200 follow-up previous commit Diffstat: M electrum/lnchannel.py | 1 + M electrum/lnutil.py | 2 ++ M electrum/lnwatcher.py | 1 - M electrum/lnworker.py | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) --- DIR diff --git a/electrum/lnchannel.py b/electrum/lnchannel.py t@@ -55,6 +55,7 @@ from .lnsweep import create_sweeptx_for_their_revoked_htlc, SweepInfo from .lnhtlc import HTLCManager from .lnmsg import encode_msg, decode_msg from .address_synchronizer import TX_HEIGHT_LOCAL +from .lnutil import CHANNEL_OPENING_TIMEOUT if TYPE_CHECKING: from .lnworker import LNWallet DIR diff --git a/electrum/lnutil.py b/electrum/lnutil.py t@@ -175,6 +175,8 @@ DEFAULT_TO_SELF_DELAY = 144 REDEEM_AFTER_DOUBLE_SPENT_DELAY = 30 +CHANNEL_OPENING_TIMEOUT = 24*60*60 + ##### CLTV-expiry-delta-related values # see https://github.com/lightningnetwork/lightning-rfc/blob/master/02-peer-protocol.md#cltv_expiry_delta-selection DIR diff --git a/electrum/lnwatcher.py b/electrum/lnwatcher.py t@@ -329,7 +329,6 @@ class WatchTower(LNWatcher): -CHANNEL_OPENING_TIMEOUT = 24*60*60 class LNWalletWatcher(LNWatcher): DIR diff --git a/electrum/lnworker.py b/electrum/lnworker.py t@@ -63,7 +63,7 @@ from .i18n import _ from .lnrouter import RouteEdge, LNPaymentRoute, is_route_sane_to_use from .address_synchronizer import TX_HEIGHT_LOCAL from . import lnsweep -from .lnwatcher import LNWalletWatcher, CHANNEL_OPENING_TIMEOUT +from .lnwatcher import LNWalletWatcher if TYPE_CHECKING: from .network import Network