mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-12-01 11:43:58 +01:00
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:
+1
-1
@@ -445,7 +445,7 @@ function Miner(id, login, pass, ipAddress, startingDiff, messageSender, protoVer
|
|||||||
|
|
||||||
|
|
||||||
let newJob = {
|
let newJob = {
|
||||||
id: uuidV4(),
|
id: crypto.pseudoRandomBytes(21).toString('base64'),
|
||||||
extraNonce: activeBlockTemplate.extraNonce,
|
extraNonce: activeBlockTemplate.extraNonce,
|
||||||
height: activeBlockTemplate.height,
|
height: activeBlockTemplate.height,
|
||||||
difficulty: this.difficulty,
|
difficulty: this.difficulty,
|
||||||
|
|||||||
Reference in New Issue
Block a user