From b9477ef84e14f473793391a2b1d61ccb58c8de0d Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 18 May 2026 14:37:29 +0530 Subject: feat: multi-mint config array and acceptance check (Phase 1+2) - config.h: increase TOLLGATE_MAX_MINT_URLS to 8, add accepted_mints[] to config struct - config.c: parse accepted_mints JSON array, fallback to mint_url for backward compat - cashu.c: cashu_is_mint_accepted() iterates accepted_mints[] instead of single mint_url --- main/config.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'main/config.h') diff --git a/main/config.h b/main/config.h index fa4d95c..8e12878 100644 --- a/main/config.h +++ b/main/config.h @@ -9,7 +9,7 @@ #include "lightning_payout.h" #define TOLLGATE_MAX_WIFI_NETWORKS 5 -#define TOLLGATE_MAX_MINT_URLS 3 +#define TOLLGATE_MAX_MINT_URLS 8 #define TOLLGATE_MAX_AP_SSID_LEN 32 #define TOLLGATE_MAX_AP_PASS_LEN 64 #define TOLLGATE_MAX_RELAYS 4 @@ -40,6 +40,8 @@ typedef struct { char ap_ip_str[16]; char mint_url[256]; + char accepted_mints[TOLLGATE_MAX_MINT_URLS][256]; + int accepted_mint_count; char lnurl_url[256]; int price_per_step; int step_size_ms; -- cgit v1.2.3