mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 09:21:39 +00:00
add lnworker in start_network
This commit is contained in:
parent
5c5982d9f7
commit
08448fd2f0
2 changed files with 5 additions and 2 deletions
|
@ -45,7 +45,6 @@ from .simple_config import SimpleConfig
|
|||
from .exchange_rate import FxThread
|
||||
from .plugin import run_hook
|
||||
from .logging import get_logger
|
||||
from .lnworker import LNWorker
|
||||
|
||||
|
||||
_logger = get_logger(__name__)
|
||||
|
@ -261,7 +260,6 @@ class Daemon(DaemonThread):
|
|||
return
|
||||
wallet = Wallet(storage)
|
||||
wallet.start_network(self.network)
|
||||
wallet.lnworker = LNWorker(wallet, self.network)
|
||||
self.wallets[path] = wallet
|
||||
return wallet
|
||||
|
||||
|
|
|
@ -64,6 +64,7 @@ from .interface import NetworkException
|
|||
from .ecc_fast import is_using_fast_ecc
|
||||
from .mnemonic import Mnemonic
|
||||
from .logging import get_logger
|
||||
from .lnworker import LNWorker
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from .network import Network
|
||||
|
@ -246,6 +247,10 @@ class Abstract_Wallet(AddressSynchronizer):
|
|||
super().clear_history()
|
||||
self.storage.write()
|
||||
|
||||
def start_network(self, network):
|
||||
AddressSynchronizer.start_network(self, network)
|
||||
self.lnworker = LNWorker(self, network)
|
||||
|
||||
def load_and_cleanup(self):
|
||||
self.load_keystore()
|
||||
self.test_addresses_sanity()
|
||||
|
|
Loading…
Add table
Reference in a new issue