mirror of
https://github.com/Retropex/apolloapi-v2.git
synced 2025-05-28 13:02:35 +02:00
Solo conf in default one
This commit is contained in:
parent
59068338cf
commit
fce65a50d6
@ -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
|
@ -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`
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user