From f5e573c6aac12aba618d69b774d08b5ca4fa1a5d Mon Sep 17 00:00:00 2001 From: Didrole Date: Wed, 1 Mar 2017 11:58:03 +0100 Subject: [PATCH] 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 --- lib/pool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pool.js b/lib/pool.js index 922f32b..8c4332a 100644 --- a/lib/pool.js +++ b/lib/pool.js @@ -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,