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` );