Update with extra debugging information.

This commit is contained in:
Alexander Blair 2017-11-01 10:38:24 -07:00
parent 6e767e175e
commit 485e7726b6

View file

@ -583,6 +583,7 @@ function Database(){
function(callback){
global.coinFuncs.getBlockHeaderByHash(oldestLockedBlock.hash, (err, result) => {
oldestLockedBlock.height = result.height;
console.log(`Got the oldest block`);
callback(null, oldestLockedBlock);
});
},
@ -624,7 +625,7 @@ function Database(){
let shareCount = 0;
let pplnsFound = false;
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) {
blockID = (blockID - lastBlock+1) * -1;
if (blockID < 0){