commit aa32e31a3dbd9a6517ae40187b1160940f764958
parent 06dfe1699cca8d116914138147301b0ec9b289bc
Author: ThomasV <thomasv@electrum.org>
Date: Fri, 3 Apr 2020 18:54:02 +0200
follow-up previous commit
Diffstat:
4 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/electrum/lnchannel.py b/electrum/lnchannel.py
@@ -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
diff --git a/electrum/lnutil.py b/electrum/lnutil.py
@@ -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
diff --git a/electrum/lnwatcher.py b/electrum/lnwatcher.py
@@ -329,7 +329,6 @@ class WatchTower(LNWatcher):
-CHANNEL_OPENING_TIMEOUT = 24*60*60
class LNWalletWatcher(LNWatcher):
diff --git a/electrum/lnworker.py b/electrum/lnworker.py
@@ -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