Generate smaller job ids.

Because wolf-xmr-miner supports up to 31 bytes ids.

https://github.com/wolf9466/wolf-xmr-miner/blob/master/stratum.h#L10
https://github.com/wolf9466/wolf-xmr-miner/blob/master/main.c#L1241
This commit is contained in:
Didrole 2017-03-01 11:58:03 +01:00
parent cd3cabd150
commit f5e573c6aa

View file

@ -445,7 +445,7 @@ function Miner(id, login, pass, ipAddress, startingDiff, messageSender, protoVer
let newJob = {
id: uuidV4(),
id: crypto.pseudoRandomBytes(21).toString('base64'),
extraNonce: activeBlockTemplate.extraNonce,
height: activeBlockTemplate.height,
difficulty: this.difficulty,