Solo conf in default one

This commit is contained in:
Michele Marcucci 2024-05-27 08:08:57 +02:00
parent 59068338cf
commit fce65a50d6
2 changed files with 4 additions and 3 deletions

View File

@ -4,4 +4,6 @@ rpcpassword=
daemon=0
upnp=1
uacomment=FutureBit-Apollo-Node
zmqpubhashblock=tcp://127.0.0.1:28332
#SOLO_START
zmqpubhashblock=tcp://127.0.0.1:28332
#SOLO_END

View File

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