upleb.uk

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

summaryrefslogtreecommitdiff
path: root/main/config.h
diff options
context:
space:
mode:
authorYour Name <you@example.com>2026-05-18 14:37:29 +0530
committerYour Name <you@example.com>2026-05-18 14:37:29 +0530
commitb9477ef84e14f473793391a2b1d61ccb58c8de0d (patch)
tree9ff2d6a89c8527c85b5fc8fa7e56936b2fc1afbf /main/config.h
parentd7e27c66ef9c263ca6d3cf5d2eebe5e6443d6972 (diff)
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
Diffstat (limited to 'main/config.h')
-rw-r--r--main/config.h4
1 files changed, 3 insertions, 1 deletions
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 @@
9#include "lightning_payout.h" 9#include "lightning_payout.h"
10 10
11#define TOLLGATE_MAX_WIFI_NETWORKS 5 11#define TOLLGATE_MAX_WIFI_NETWORKS 5
12#define TOLLGATE_MAX_MINT_URLS 3 12#define TOLLGATE_MAX_MINT_URLS 8
13#define TOLLGATE_MAX_AP_SSID_LEN 32 13#define TOLLGATE_MAX_AP_SSID_LEN 32
14#define TOLLGATE_MAX_AP_PASS_LEN 64 14#define TOLLGATE_MAX_AP_PASS_LEN 64
15#define TOLLGATE_MAX_RELAYS 4 15#define TOLLGATE_MAX_RELAYS 4
@@ -40,6 +40,8 @@ typedef struct {
40 char ap_ip_str[16]; 40 char ap_ip_str[16];
41 41
42 char mint_url[256]; 42 char mint_url[256];
43 char accepted_mints[TOLLGATE_MAX_MINT_URLS][256];
44 int accepted_mint_count;
43 char lnurl_url[256]; 45 char lnurl_url[256];
44 int price_per_step; 46 int price_per_step;
45 int step_size_ms; 47 int step_size_ms;