mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-21 05:58:34 +02:00
Update with extra debugging information.
This commit is contained in:
+2
-1
@@ -583,6 +583,7 @@ function Database(){
|
|||||||
function(callback){
|
function(callback){
|
||||||
global.coinFuncs.getBlockHeaderByHash(oldestLockedBlock.hash, (err, result) => {
|
global.coinFuncs.getBlockHeaderByHash(oldestLockedBlock.hash, (err, result) => {
|
||||||
oldestLockedBlock.height = result.height;
|
oldestLockedBlock.height = result.height;
|
||||||
|
console.log(`Got the oldest block`);
|
||||||
callback(null, oldestLockedBlock);
|
callback(null, oldestLockedBlock);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -624,7 +625,7 @@ function Database(){
|
|||||||
let shareCount = 0;
|
let shareCount = 0;
|
||||||
let pplnsFound = false;
|
let pplnsFound = false;
|
||||||
let blockList = [];
|
let blockList = [];
|
||||||
debug("Scanning from: "+lastBlock + " for more than: " + difficulty + " shares");
|
console.log("Scanning from: "+lastBlock + " for more than: " + difficulty + " shares");
|
||||||
range.range(0, lastBlock+1).forEach(function (blockID) {
|
range.range(0, lastBlock+1).forEach(function (blockID) {
|
||||||
blockID = (blockID - lastBlock+1) * -1;
|
blockID = (blockID - lastBlock+1) * -1;
|
||||||
if (blockID < 0){
|
if (blockID < 0){
|
||||||
|
|||||||
Reference in New Issue
Block a user