mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02: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 = {
|
||||
id: uuidV4(),
|
||||
id: crypto.pseudoRandomBytes(21).toString('base64'),
|
||||
extraNonce: activeBlockTemplate.extraNonce,
|
||||
height: activeBlockTemplate.height,
|
||||
difficulty: this.difficulty,
|
||||
|
||||
Reference in New Issue
Block a user