|
|
@ -6,7 +6,7 @@ import locale |
|
|
|
from decimal import Decimal |
|
|
|
import getpass |
|
|
|
import logging |
|
|
|
from typing import TYPE_CHECKING |
|
|
|
from typing import TYPE_CHECKING, Optional |
|
|
|
|
|
|
|
import electrum |
|
|
|
from electrum.gui import BaseElectrumGui |
|
|
@ -14,7 +14,7 @@ from electrum import util |
|
|
|
from electrum.util import format_satoshis |
|
|
|
from electrum.bitcoin import is_address, COIN |
|
|
|
from electrum.transaction import PartialTxOutput |
|
|
|
from electrum.wallet import Wallet |
|
|
|
from electrum.wallet import Wallet, Abstract_Wallet |
|
|
|
from electrum.wallet_db import WalletDB |
|
|
|
from electrum.storage import WalletStorage |
|
|
|
from electrum.network import NetworkParameters, TxBroadcastError, BestEffortRequestFailed |
|
|
@ -42,7 +42,7 @@ class ElectrumGui(BaseElectrumGui): |
|
|
|
password = getpass.getpass('Password:', stream=None) |
|
|
|
storage.decrypt(password) |
|
|
|
db = WalletDB(storage.read(), manual_upgrades=False) |
|
|
|
self.wallet = Wallet(db, storage, config=config) |
|
|
|
self.wallet = Wallet(db, storage, config=config) # type: Optional[Abstract_Wallet] |
|
|
|
self.wallet.start_network(self.network) |
|
|
|
self.contacts = self.wallet.contacts |
|
|
|
|
|
|
|