mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-28 06:09:12 +01:00
Update with fixes to finish getting AEON working and to block things from blocking when I don't expect them to.
AEON has a block on the way it does chain saving, which can lock up many portions of the blockManager daemon. This is now patched in blockmanager.
This commit is contained in:
+4
-2
@@ -155,8 +155,8 @@ function checkAliveMiners() {
|
||||
}
|
||||
|
||||
function templateUpdate(repeating) {
|
||||
global.coinFuncs.getBlockTemplate(global.config.pool.address, function (rpcResponse) {
|
||||
if (rpcResponse) {
|
||||
global.coinFuncs.getBlockTemplate(global.config.pool.address, function (err, rpcResponse) {
|
||||
if (rpcResponse && typeof rpcResponse.result !== 'undefined') {
|
||||
rpcResponse = rpcResponse.result;
|
||||
let buffer = new Buffer(rpcResponse.blocktemplate_blob, 'hex');
|
||||
let new_hash = new Buffer(32);
|
||||
@@ -174,6 +174,8 @@ function templateUpdate(repeating) {
|
||||
if (repeating !== false) {
|
||||
setTimeout(templateUpdate, 300);
|
||||
}
|
||||
} else {
|
||||
setTimeout(templateUpdate, 300);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user