this.logger.info('GIVEN proof-of-work for block#%s with %s leading zeros followed by [0-'+highMark+']! stop PoW for %s',block.number,nbZeros,this.pair&&this.pair.pub.slice(0,6));
this.logger.info("Boost number of CPU cores "+powFarm.nbWorkers+" with only "+selfNbBlockInFrame+" block member in frame")
}
}
throw'Proof-of-work computation canceled because block received';
}else{
constproof=result.block;
@@ -201,13 +218,44 @@ export class BlockProver {
consttestsPerSecond=testsCount/(duration/1000)
this.logger.info('Done: #%s, %s in %ss (~%s tests, ~%s tests/s, using %s cores, CPU %s%)',block.number,proof.hash,(duration/1000).toFixed(2),testsCount,testsPerSecond.toFixed(2),powFarm.nbWorkers,Math.floor(100*this.conf.cpu))
this.logger.info('FOUND proof-of-work with %s leading zeros followed by [0-'+highMark+']!',nbZeros);
MAX_PEER_ID:899,// Due to MAX_SAFE_INTEGER = 9007199254740991 (16 digits, and we use 11 digits for the nonce + 2 digits for core number => 3 digits for the peer, must be below 900)