Adding logging for errors in the share parsing.

This commit is contained in:
Alexander Blair 2017-05-19 17:47:36 -07:00
parent 6413b89345
commit e39ed5203c

View file

@ -261,6 +261,8 @@ function Database(){
cachedData[minerID].totalHashes += share.shares;
cachedData[minerIDWithIdentifier].goodShares += 1;
cachedData[minerID].goodShares += 1;
} else {
console.error("Error in share parser: " + JSON.stringify(share));
}
if(shareObject.length === shareCount){
// Perform insert and return