upleb.uk

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

summaryrefslogtreecommitdiff
path: root/components/nucula_lib/nucula_wallet.cpp
diff options
context:
space:
mode:
authorYour Name <you@example.com>2026-05-21 16:46:51 +0530
committerYour Name <you@example.com>2026-05-21 16:46:51 +0530
commit19e175b1c1dea54efb61e8040ffdfa973fbac5d5 (patch)
treef41ca977a993cc24f8bf136e96370c8097ceeaf1 /components/nucula_lib/nucula_wallet.cpp
parent243e4808246555f86d464d1c476681a902e644ff (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 'components/nucula_lib/nucula_wallet.cpp')
-rw-r--r--components/nucula_lib/nucula_wallet.cpp2
1 files changed, 1 insertions, 1 deletions
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)
188 return ESP_FAIL; 188 return ESP_FAIL;
189 } 189 }
190 190
191 vTaskDelay(pdMS_TO_TICKS(2000)); 191 vTaskDelay(pdMS_TO_TICKS(100));
192 192
193 std::vector<cashu::Proof> proofs_out; 193 std::vector<cashu::Proof> proofs_out;
194 if (!w->receive(tok, proofs_out)) { 194 if (!w->receive(tok, proofs_out)) {