From fce65a50d6fe0d17477e56d50b686103e0df841e Mon Sep 17 00:00:00 2001 From: Michele Marcucci Date: Mon, 27 May 2024 08:08:57 +0200 Subject: [PATCH] Solo conf in default one --- backend/default-configs/bitcoin.conf | 4 +++- src/utils.js | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/default-configs/bitcoin.conf b/backend/default-configs/bitcoin.conf index 81273e8..984698d 100644 --- a/backend/default-configs/bitcoin.conf +++ b/backend/default-configs/bitcoin.conf @@ -4,4 +4,6 @@ rpcpassword= daemon=0 upnp=1 uacomment=FutureBit-Apollo-Node -zmqpubhashblock=tcp://127.0.0.1:28332 \ No newline at end of file +#SOLO_START +zmqpubhashblock=tcp://127.0.0.1:28332 +#SOLO_END \ No newline at end of file diff --git a/src/utils.js b/src/utils.js index 06f0c21..0034071 100644 --- a/src/utils.js +++ b/src/utils.js @@ -189,12 +189,11 @@ module.exports.auth = { const defaultConf = `server=1\nrpcuser=futurebit\nrpcpassword=${settings.nodeRpcPassword}\ndaemon=0\nupnp=1\nuacomment=FutureBit-Apollo-Node`; let conf = defaultConf; + conf += `\n#SOLO_START\nzmqpubhashblock=tcp://127.0.0.1:28332\n#SOLO_END`; this.manageCkpoolConf(settings); if (settings.nodeEnableSoloMining) { - conf += `\n#SOLO_START\nzmqpubhashblock=tcp://127.0.0.1:28332\n#SOLO_END`; - exec( `sudo cp ${configCkpoolServiceFilePath} /etc/systemd/system/ckpool.service` );