Merge pull request #375 from dwightmulcahy/version
miner version is now sent to the mining pool
This commit is contained in:
commit
8f7b64d13d
@ -8,6 +8,7 @@
|
||||
#include "esp_log.h"
|
||||
#include "lwip/sockets.h"
|
||||
#include "utils.h"
|
||||
#include "version.h"
|
||||
|
||||
|
||||
|
||||
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user