From 19e175b1c1dea54efb61e8040ffdfa973fbac5d5 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 21 May 2026 16:46:51 +0530 Subject: Wallet receive via health task queue (no separate TLS worker) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- components/nucula_lib/nucula_wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/nucula_lib/nucula_wallet.cpp') diff --git a/components/nucula_lib/nucula_wallet.cpp b/components/nucula_lib/nucula_wallet.cpp index 278c9bc..cd63741 100644 --- a/components/nucula_lib/nucula_wallet.cpp +++ b/components/nucula_lib/nucula_wallet.cpp @@ -188,7 +188,7 @@ esp_err_t nucula_wallet_receive(const char *token_str) return ESP_FAIL; } - vTaskDelay(pdMS_TO_TICKS(2000)); + vTaskDelay(pdMS_TO_TICKS(100)); std::vector proofs_out; if (!w->receive(tok, proofs_out)) { -- cgit v1.2.3