diff options
| author | Your Name <you@example.com> | 2026-05-23 04:10:28 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-23 04:10:28 +0530 |
| commit | 851801f50f1282ab1db5f8a241dbd245f59e447e (patch) | |
| tree | 3285d0714da89879acd21b8c3fb9afeff586ed1e /components/tollgate_core/include | |
| parent | 39aa27a9522aeb8f731f4d3de48939e75775900e (diff) | |
Phase 5: Wire main/ shims to components/tollgate_core
- session.c/h: thin shim casting session_t* <-> tg_session_t*, delegates to tollgate_core_session_*
- firewall.c/h: keeps ESP-specific lwIP hooks, delegates allowlist to tollgate_core_fw_*
- cashu.c/h: shim delegates to tollgate_core_cashu_*, multi-mint via config directly
- mining_payment.c: shim delegates to tollgate_core_mining_*
- tollgate_main.c: calls tollgate_core_init(tollgate_esp_get_platform(), ap_ip) in start_services()
- tollgate_esp: removed target_sources for standalone sources, depends on tollgate_core component
- tollgate_core component: added tollgate_core_get_platform(), tg_payment_method_t enum
- Unit tests: updated Makefile for component source compilation, all 22 tests pass
- Hardware verified: Board A boots, AP visible, 5/6 smoke tests pass (internet test needs upstream WiFi)
Diffstat (limited to 'components/tollgate_core/include')
| -rw-r--r-- | components/tollgate_core/include/tollgate_core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/tollgate_core/include/tollgate_core.h b/components/tollgate_core/include/tollgate_core.h index 6a17cbd..e5e5030 100644 --- a/components/tollgate_core/include/tollgate_core.h +++ b/components/tollgate_core/include/tollgate_core.h | |||
| @@ -41,6 +41,8 @@ void tollgate_core_on_share_accepted(uint32_t client_ip, double difficulty); | |||
| 41 | double tollgate_core_calc_hashprice(double hashrate_ghs); | 41 | double tollgate_core_calc_hashprice(double hashrate_ghs); |
| 42 | char *tollgate_core_get_mining_status_json(void); | 42 | char *tollgate_core_get_mining_status_json(void); |
| 43 | 43 | ||
| 44 | const tollgate_platform_t *tollgate_core_get_platform(void); | ||
| 45 | |||
| 44 | #ifdef __cplusplus | 46 | #ifdef __cplusplus |
| 45 | } | 47 | } |
| 46 | #endif | 48 | #endif |