1
0

load wallet plugin in Wallet factory, fix trustedcoin wizard on kivy

This commit is contained in:
ThomasV
2019-02-26 09:44:34 +01:00
parent d73f7a2c10
commit cb9dcb8e26
3 changed files with 5 additions and 7 deletions

View File

@@ -31,7 +31,6 @@ from typing import Dict
from . import util, bitcoin
from .util import PrintError, profiler, WalletFileException, multisig_type, TxMinedInfo
from .plugin import plugin_loaders
from .keystore import bip44_derivation
from .transaction import Transaction
@@ -105,11 +104,6 @@ class JsonDB(PrintError):
if not isinstance(self.data, dict):
raise WalletFileException("Malformed wallet file (not dict)")
# check here if I need to load a plugin
t = self.get('wallet_type')
l = plugin_loaders.get(t)
if l: l()
if not self.manual_upgrades:
if self.requires_split():
raise WalletFileException("This wallet has multiple accounts and must be split")