mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02:00
Adding logging for errors in the share parsing.
This commit is contained in:
@@ -261,6 +261,8 @@ function Database(){
|
|||||||
cachedData[minerID].totalHashes += share.shares;
|
cachedData[minerID].totalHashes += share.shares;
|
||||||
cachedData[minerIDWithIdentifier].goodShares += 1;
|
cachedData[minerIDWithIdentifier].goodShares += 1;
|
||||||
cachedData[minerID].goodShares += 1;
|
cachedData[minerID].goodShares += 1;
|
||||||
|
} else {
|
||||||
|
console.error("Error in share parser: " + JSON.stringify(share));
|
||||||
}
|
}
|
||||||
if(shareObject.length === shareCount){
|
if(shareObject.length === shareCount){
|
||||||
// Perform insert and return
|
// Perform insert and return
|
||||||
|
|||||||
Reference in New Issue
Block a user