1
0

fix: load trustedcoin plugin for two-step wallet creation

This commit is contained in:
ThomasV
2019-02-28 13:11:00 +01:00
parent d74f0c0947
commit 3631c27ed7
4 changed files with 11 additions and 6 deletions

View File

@@ -31,7 +31,7 @@ import zlib
from . import ecc
from .util import PrintError, profiler, InvalidPassword, WalletFileException, bfh, standardize_path
from .plugin import run_hook
from .plugin import run_hook, plugin_loaders
from .json_db import JsonDB
@@ -68,6 +68,13 @@ class WalletStorage(PrintError):
# avoid new wallets getting 'upgraded'
self.db = DB_Class('', manual_upgrades=False)
self.load_plugins()
def load_plugins(self):
wallet_type = self.db.get('wallet_type')
if wallet_type in plugin_loaders:
plugin_loaders[wallet_type]()
def put(self, key,value):
self.db.put(key, value)