diff options
| author | Your Name <you@example.com> | 2026-05-16 03:37:20 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-16 03:37:20 +0530 |
| commit | c342801162e62ff017ead18688107397d229f606 (patch) | |
| tree | 84280cde11bd05226d338a07c0817337941f7cb1 /main/config.c | |
| parent | aed51d824f598f7315282936037c4d5b6e7fb4b8 (diff) | |
Phase 2 WIP: token decode works, TLS checkstate succeeds (crashes after response)
- cashu.c: dynamic json_buf sizing (was 2048 stack, now heap based on token length)
- cashu.c: strip trailing newline/CR from token input (cashu CLI appends 'Balance: 0 sat')
- cashu.c: esp_crt_bundle_attach for HTTPS to mint API
- cashu.c: esp_http_client_open/write/fetch_headers/read pattern for HTTPS POST
- cashu.c: remove debug b64url_decode logging
- tollgate_api.c: loop httpd_req_recv for full body (was single call, missed TCP segments)
- tollgate_api.c: stack_size=32768 for TLS in httpd handler
- config.c: fix default mint URL from nofee.testnut to testnut.cashu.space
- CMakeLists.txt: add esp-tls dependency for cert bundle
- CHECKLIST.md: updated with infrastructure status and TDD plan
Known issue: device reboots after checkstate returns 966 bytes with status=200.
Crash likely in post-response processing (JSON parse or session create).
Diffstat (limited to 'main/config.c')
| -rw-r--r-- | main/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/config.c b/main/config.c index f78bc8b..b44c3c5 100644 --- a/main/config.c +++ b/main/config.c | |||
| @@ -38,7 +38,7 @@ esp_err_t tollgate_config_init(void) | |||
| 38 | "\"ap_ssid\":\"TollGate\"," | 38 | "\"ap_ssid\":\"TollGate\"," |
| 39 | "\"ap_password\":\"\"," | 39 | "\"ap_password\":\"\"," |
| 40 | "\"ap_channel\":1," | 40 | "\"ap_channel\":1," |
| 41 | "\"mint_url\":\"https://nofee.testnut.cashu.space\"," | 41 | "\"mint_url\":\"https://testnut.cashu.space\"," |
| 42 | "\"lnurl_url\":\"https://redeem.cashu.me/.well-known/lnurlp/tollgate\"," | 42 | "\"lnurl_url\":\"https://redeem.cashu.me/.well-known/lnurlp/tollgate\"," |
| 43 | "\"price_per_step\":21," | 43 | "\"price_per_step\":21," |
| 44 | "\"step_size_ms\":60000" | 44 | "\"step_size_ms\":60000" |