From 76029824f5407ec8eafb0c265deb2cf99856db1d Mon Sep 17 00:00:00 2001 From: pbca26 Date: Wed, 25 Apr 2018 10:15:25 +0300 Subject: [PATCH] native gen param --- routes/shepherd/daemonControl.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/shepherd/daemonControl.js b/routes/shepherd/daemonControl.js index 86e9e77..0a205fd 100644 --- a/routes/shepherd/daemonControl.js +++ b/routes/shepherd/daemonControl.js @@ -187,12 +187,14 @@ module.exports = (shepherd) => { change: '-pubkey=', datadir: '-datadir=', rescan: '-rescan', + gen: '-gen', }; let _customParam = ''; if (data.ac_custom_param === 'silent' || data.ac_custom_param === 'reindex' || - data.ac_custom_param === 'rescan') { + data.ac_custom_param === 'rescan' || + data.ac_custom_param === 'gen') { _customParam = ` ${_customParamDict[data.ac_custom_param]}`; } else if (data.ac_custom_param === 'change' && data.ac_custom_param_value) { _customParam = ` ${_customParamDict[data.ac_custom_param]}${data.ac_custom_param_value}`;