mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
fix undefined name 'CHANNEL_INIT_TIMEOUT'
This commit is contained in:
parent
a78583e5d4
commit
3966b51a94
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,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
|
||||
from .lnwatcher import LNWalletWatcher, CHANNEL_OPENING_TIMEOUT
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from .network import Network
|
||||
|
@ -674,7 +674,7 @@ class LNWallet(LNWorker):
|
|||
break
|
||||
else:
|
||||
now = int(time.time())
|
||||
if now - chan.storage.get('init_timestamp', 0) > CHANNEL_INIT_TIMEOUT:
|
||||
if now - chan.storage.get('init_timestamp', 0) > CHANNEL_OPENING_TIMEOUT:
|
||||
self.remove_channel(chan.channel_id)
|
||||
|
||||
async def update_open_channel(self, chan, funding_txid, funding_height):
|
||||
|
|
Loading…
Add table
Reference in a new issue