Skip to content

Commit

Permalink
Merge pull request #375 from dwightmulcahy/version
Browse files Browse the repository at this point in the history
miner version is now sent to the mining pool
  • Loading branch information
BitMaker-hub authored Apr 29, 2024
2 parents ec144bc + 886f46c commit 8f7b64d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/stratum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "esp_log.h"
#include "lwip/sockets.h"
#include "utils.h"
#include "version.h"



Expand Down Expand Up @@ -55,9 +56,9 @@ bool tx_mining_subscribe(WiFiClient& client, mining_subscribe& mSubscribe)
// Subscribe
id = 1; //Initialize id messages
#ifndef HAN
sprintf(payload, "{\"id\": %u, \"method\": \"mining.subscribe\", \"params\": [\"NerdMinerV2\"]}\n", id);
sprintf(payload, "{\"id\": %u, \"method\": \"mining.subscribe\", \"params\": [\"NerdMinerV2/%s\"]}\n", id, CURRENT_VERSION);
#else
sprintf(payload, "{\"id\": %u, \"method\": \"mining.subscribe\", \"params\": [\"HAN_SOLOminer\"]}\n", id);
sprintf(payload, "{\"id\": %u, \"method\": \"mining.subscribe\", \"params\": [\"HAN_SOLOminer/%s\"]}\n", id, CURRENT_VERSION);
#endif

Serial.printf("[WORKER] ==> Mining subscribe\n");
Expand Down

0 comments on commit 8f7b64d

Please sign in to comment.