Adapt solo pool for current Peya and shared util
This commit is contained in:
@@ -17,17 +17,6 @@ let blockData = JSON.stringify({
|
||||
params: {}
|
||||
})
|
||||
|
||||
let templateData = JSON.stringify({
|
||||
id: "0",
|
||||
jsonrpc: "2.0",
|
||||
method: 'getblocktemplate',
|
||||
params: {
|
||||
reserve_size: config.poolServer.mergedMining ? POOL_NONCE_MM_SIZE : POOL_NONCE_SIZE,
|
||||
wallet_address: config.poolServer.poolAddress
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
require('./exceptionWriter.js')(logSystem);
|
||||
|
||||
|
||||
@@ -62,6 +51,15 @@ function runInterval () {
|
||||
});
|
||||
},
|
||||
function (getbc, callback) {
|
||||
let templateData = JSON.stringify({
|
||||
id: "0",
|
||||
jsonrpc: "2.0",
|
||||
method: 'getblocktemplate',
|
||||
params: {
|
||||
reserve_size: config.poolServer.mergedMining ? POOL_NONCE_MM_SIZE : POOL_NONCE_SIZE,
|
||||
wallet_address: utils.getPoolTemplateAddress()
|
||||
}
|
||||
});
|
||||
apiInterfaces.jsonHttpRequest(config.daemon.host, config.daemon.port, templateData, function (err, res) {
|
||||
if (err) {
|
||||
log('error', logSystem, 'Error polling getblocktemplate %j', [err])
|
||||
|
||||
Reference in New Issue
Block a user