electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 08448fd2f064bdc40616c4a4a9e434ec77709f9f
parent 5c5982d9f7736e7a6f4af85ba38bcd5be8a4f278
Author: ThomasV <thomasv@electrum.org>
Date:   Sun, 23 Sep 2018 17:43:51 +0200

add lnworker in start_network

Diffstat:
Melectrum/daemon.py | 2--
Melectrum/wallet.py | 5+++++
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/electrum/daemon.py b/electrum/daemon.py @@ -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 diff --git a/electrum/wallet.py b/electrum/wallet.py @@ -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()