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:
parent
cd3cabd150
commit
f5e573c6aa
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue