diff options
| author | Your Name <you@example.com> | 2026-05-19 04:13:11 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-19 04:13:11 +0530 |
| commit | beb73a2eeacf7dbe5e292ce6e26a95a933808267 (patch) | |
| tree | 3a9b711e1475c09ed544b96358587df3e5362555 /main/firewall.h | |
| parent | c75230e551a778408b2e370b208aff76b74c6560 (diff) | |
feat(mining): integrate mining subsystem into existing modules
- CMakeLists.txt: add 6 mining sources + tcp_transport dependency
- config.h/c: mining_payout_mode_t enum, mining config fields, JSON parsing
- tollgate_main.c: mining init in start_services(), stratum_client_tick in main loop
- tollgate_api.c: GET /mining/job, POST /mining/share, GET /mining/stats endpoints
- session.h/c: payment_method_t enum (CASHU/MINING/BYTES)
- firewall.h/c: sandbox allowlist for mining port + mint URLs
- tollgate_client.h/c: TG_CLIENT_MINING state, mining discovery tag parsing
- captive_portal.c: tabbed UI with Cashu/Mine tabs, live hashrate polling
Diffstat (limited to 'main/firewall.h')
| -rw-r--r-- | main/firewall.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/firewall.h b/main/firewall.h index f177eaa..77300e2 100644 --- a/main/firewall.h +++ b/main/firewall.h | |||
| @@ -11,6 +11,8 @@ struct pbuf; | |||
| 11 | #define FW_MAX_MAC_LEN 18 | 11 | #define FW_MAX_MAC_LEN 18 |
| 12 | 12 | ||
| 13 | esp_err_t firewall_init(esp_ip4_addr_t ap_ip); | 13 | esp_err_t firewall_init(esp_ip4_addr_t ap_ip); |
| 14 | void firewall_set_mining_port(uint16_t port); | ||
| 15 | void firewall_set_sandbox_mint_access(bool enabled); | ||
| 14 | void firewall_grant_access(uint32_t client_ip); | 16 | void firewall_grant_access(uint32_t client_ip); |
| 15 | void firewall_revoke_access(uint32_t client_ip); | 17 | void firewall_revoke_access(uint32_t client_ip); |
| 16 | void firewall_revoke_all(void); | 18 | void firewall_revoke_all(void); |