Good evening. Tell me, is it possible to add an additional construction of the kawpow blocktemplate?
The kawpow of HVQ is slightly different. I tried to find the changes, but I don't understand well. Perhaps a link to the pool in their git will help. I tried to run with this kawpow but the reward is 0. https://github.com/HiveProject2021/kawpow-pool/commit/224d57451e020b9b8cb261125ba7cd3f9a49e765
let cliHost = '';
if (portalConfig.cliHost) {
cliHost = portalConfig.cliHost;
} else {
cliHost = '127.0.0.1';
}
var cliPort = portalConfig.cliPort;
var listener = new CliListener(cliHost, cliPort);
listener.on('log', function (text) {
logger.debug('Master', 'CLI', text);
}).on('command', function (command, params, options, reply) {
switch (command) {
case 'blocknotify':
Object.keys(cluster.workers).forEach(function (id) {
cluster.workers[id].send({type: 'blocknotify', coin: params[0], hash: params[1]});
});
reply('Pool workers notified');
break;
case 'coinswitch':
processCoinSwitchCommand(params, options, reply);
break;
case 'reloadpool':
Object.keys(cluster.workers).forEach(function (id) {
cluster.workers[id].send({type: 'reloadpool', coin: params[0]});
});
reply('reloaded pool ' + params[0]);
break;
default:
reply('unrecognized command "' + command + '"');
break;
}
}).start();
Good evening. Tell me, is it possible to add an additional construction of the kawpow blocktemplate? The kawpow of HVQ is slightly different. I tried to find the changes, but I don't understand well. Perhaps a link to the pool in their git will help. I tried to run with this kawpow but the reward is 0. https://github.com/HiveProject2021/kawpow-pool/commit/224d57451e020b9b8cb261125ba7cd3f9a49e765
let cliHost = ''; if (portalConfig.cliHost) { cliHost = portalConfig.cliHost; } else { cliHost = '127.0.0.1'; } var cliPort = portalConfig.cliPort; var listener = new CliListener(cliHost, cliPort); listener.on('log', function (text) { logger.debug('Master', 'CLI', text); }).on('command', function (command, params, options, reply) { switch (command) { case 'blocknotify': Object.keys(cluster.workers).forEach(function (id) { cluster.workers[id].send({type: 'blocknotify', coin: params[0], hash: params[1]}); }); reply('Pool workers notified'); break; case 'coinswitch': processCoinSwitchCommand(params, options, reply); break; case 'reloadpool': Object.keys(cluster.workers).forEach(function (id) { cluster.workers[id].send({type: 'reloadpool', coin: params[0]}); }); reply('reloaded pool ' + params[0]); break; default: reply('unrecognized command "' + command + '"'); break; } }).start();