diff --git a/lib/config-validate.js b/lib/config-validate.js index 547e2f6f..f4f7a471 100644 --- a/lib/config-validate.js +++ b/lib/config-validate.js @@ -5,6 +5,8 @@ const configManager = require('./config-manager') const logger = require('./logger') const schema = require('../lamassu-schema.json') +const REMOVED_FIELDS = ['crossRefVerificationActive', 'crossRefVerificationThreshold'] + function allScopes (cryptoScopes, machineScopes) { const scopes = [] cryptoScopes.forEach(c => { @@ -128,6 +130,8 @@ function ensureConstraints (config) { .then(() => { config.every(fieldInstance => { const fieldCode = fieldInstance.fieldLocator.code + if (_.includes(fieldCode, REMOVED_FIELDS)) return + const field = pickField(fieldCode) if (!field) { logger.warn('No such field: %s, %j', fieldCode, fieldInstance.fieldLocator.fieldScope)