mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02:00
Fix for templateUpdate, the only place I use getBlockTemplate.
This commit is contained in:
committed by
Alexander Blair
parent
667bc5a029
commit
2138e497a5
+1
-1
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user