upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/main/stratum_client.c
diff options
context:
space:
mode:
authorYour Name <you@example.com>2026-05-23 05:32:22 +0530
committerYour Name <you@example.com>2026-05-23 05:32:22 +0530
commit5140a30be35aaf3574efce9193549f18524ce46e (patch)
treec1146fc161fe787ccabd04558219b7591e207b61 /main/stratum_client.c
parentfb8558cbf964fae5a840f8f948b89a0d42045802 (diff)
Phase 7: eliminate shims - consumer files use component headers directly
- Deleted standalone shims: session.c/h, cashu.c/h, mining_payment.c/h, firewall.c/h - Updated captive_portal.c, tollgate_api.c, tollgate_main.c, mcp_handler.c, cvm_server.c, sw_miner.c, stratum_client.c to include component headers - Moved tollgate_ip4_canforward_filter() lwIP hook into tollgate_main.c - Fixed all unit tests to use component API (test_cashu, test_session, test_mining_payment, test_stratum_proxy, test_session_payment_method, test_firewall_sandbox, test_mcp_handler) - Removed deleted source files from Makefile targets - All 21 unit tests pass, ESP-IDF build passes
Diffstat (limited to 'main/stratum_client.c')
-rw-r--r--main/stratum_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/stratum_client.c b/main/stratum_client.c
index cf88daf..a308a5b 100644
--- a/main/stratum_client.c
+++ b/main/stratum_client.c
@@ -1,6 +1,6 @@
1#include "stratum_client.h" 1#include "stratum_client.h"
2#include "stratum_proxy.h" 2#include "stratum_proxy.h"
3#include "mining_payment.h" 3#include "tollgate_core_mining.h"
4#include "config.h" 4#include "config.h"
5#include "esp_log.h" 5#include "esp_log.h"
6#include "esp_transport.h" 6#include "esp_transport.h"
@@ -124,7 +124,7 @@ static void handle_mining_notify(cJSON *params)
124 memset(job.target, 0xFF, 32); 124 memset(job.target, 0xFF, 32);
125 job.target_len = 32; 125 job.target_len = 32;
126 126
127 mining_set_current_nbits(job.nbits); 127 tollgate_core_mining_set_current_nbits(job.nbits);
128 stratum_proxy_set_job(&job); 128 stratum_proxy_set_job(&job);
129 129
130 ESP_LOGI(TAG, "New mining job: id=%lu, nbits=0x%08lx", (unsigned long)job.job_id, (unsigned long)job.nbits); 130 ESP_LOGI(TAG, "New mining job: id=%lu, nbits=0x%08lx", (unsigned long)job.job_id, (unsigned long)job.nbits);