Fix for templateUpdate, the only place I use getBlockTemplate.

This commit is contained in:
Alexander Blair
2017-10-16 09:20:19 -07:00
committed by Alexander Blair
parent 667bc5a029
commit 2138e497a5
+1 -1
View File
@@ -155,7 +155,7 @@ function checkAliveMiners() {
}
function templateUpdate(repeating) {
global.coinFuncs.getBlockTemplate(global.config.pool.address, function (err, rpcResponse) {
global.coinFuncs.getBlockTemplate(global.config.pool.address, function (rpcResponse) {
if (rpcResponse && typeof rpcResponse.result !== 'undefined') {
rpcResponse = rpcResponse.result;
let buffer = new Buffer(rpcResponse.blocktemplate_blob, 'hex');