diff options
| author | Your Name <you@example.com> | 2026-05-21 16:46:51 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-21 16:46:51 +0530 |
| commit | 19e175b1c1dea54efb61e8040ffdfa973fbac5d5 (patch) | |
| tree | f41ca977a993cc24f8bf136e96370c8097ceeaf1 /tests/unit/stubs/tollgate_api.h | |
| parent | 243e4808246555f86d464d1c476681a902e644ff (diff) | |
Wallet receive via health task queue (no separate TLS worker)
- Removed standalone TLS worker task (couldn't allocate 16KB internal stack)
- Added wallet receive queue to mint_health task (already has 16KB stack + working TLS)
- health_task processes wallet tokens between probe intervals (1s poll)
- tls_worker_set_queue() registers queue from mint_health_start()
- Fallback to synchronous receive if queue not available
- Added freertos/queue.h and tollgate_api.h stubs for unit tests
- Added BaseType_t/UBaseType_t/TickType_t/pdFALSE to FreeRTOS stub
- Full payment round-trip confirmed: 2 payments → 41 sat balance
Diffstat (limited to 'tests/unit/stubs/tollgate_api.h')
| -rw-r--r-- | tests/unit/stubs/tollgate_api.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/unit/stubs/tollgate_api.h b/tests/unit/stubs/tollgate_api.h new file mode 100644 index 0000000..7e20fce --- /dev/null +++ b/tests/unit/stubs/tollgate_api.h | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | #ifndef STUB_TOLLGATE_API_H | ||
| 2 | #define STUB_TOLLGATE_API_H | ||
| 3 | |||
| 4 | #include "freertos/queue.h" | ||
| 5 | |||
| 6 | static inline void tls_worker_set_queue(QueueHandle_t q) | ||
| 7 | { | ||
| 8 | (void)q; | ||
| 9 | } | ||
| 10 | |||
| 11 | #endif | ||