From fb42fc54a036dd5389e9c2315d02bb80471e93e2 Mon Sep 17 00:00:00 2001 From: Rafael Taranto Date: Sun, 18 Aug 2019 17:46:55 +0100 Subject: [PATCH] Handle spammy logs for removed l-a-s options --- lib/config-validate.js | 4 ++++ 1 file changed, 4 insertions(+) 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)