more compliance stuff, mock plugins

This commit is contained in:
Josh Harvey 2016-11-23 18:06:35 +02:00
parent dc923829e3
commit 0a8021691a
5 changed files with 49 additions and 16 deletions

View file

@ -133,7 +133,9 @@ function loadPlugin (name, config) {
function loadOrConfigPlugin (pluginHandle, pluginType, cryptoCode, config, accounts, options,
onChangeCallback) {
const currentName = config.cryptoServices[pluginType]
const currentName = config.cryptoServices[pluginType] ||
config.extraServices[pluginType] ||
config.compliance[pluginType]
currentlyUsedPlugins[cryptoCode] = currentlyUsedPlugins[cryptoCode] || {}