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-17 04:37:15 +0530
committerYour Name <you@example.com>2026-05-17 04:37:15 +0530
commitcb4bd7d7c10cadcb43f82c09b13ffed744e541f7 (patch)
tree1f01c31083e9252b7f41e89ba201373d6606a47d /main/config.h
parent78dd599277b8e8b2ddc39a4ae710ec91d737272e (diff)
Phase 5: Lightning auto-payout with LNURL-pay and NUT-05 melt
- New lnurl_pay.c/h: LNURL-pay protocol (GET .well-known/lnurlp + callback) - New lightning_payout.c/h: threshold-based auto-payout with multi-recipient split - Extended nucula_wallet bridge with nucula_wallet_melt() (NUT-05) - Config: payout section with multi-mint, multi-recipient, fee_tolerance - Default: enabled, TollGate@coinos.io, min_payout=128, min_balance=64 - 18 new unit tests (all passing), 134 total
Diffstat (limited to 'main/config.h')
-rw-r--r--main/config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/config.h b/main/config.h
index 4c6116e..de9f856 100644
--- a/main/config.h
+++ b/main/config.h
@@ -6,6 +6,8 @@
6#include "esp_netif.h" 6#include "esp_netif.h"
7#include <stdbool.h> 7#include <stdbool.h>
8 8
9#include "lightning_payout.h"
10
9#define TOLLGATE_MAX_WIFI_NETWORKS 5 11#define TOLLGATE_MAX_WIFI_NETWORKS 5
10#define TOLLGATE_MAX_MINT_URLS 3 12#define TOLLGATE_MAX_MINT_URLS 3
11#define TOLLGATE_MAX_AP_SSID_LEN 32 13#define TOLLGATE_MAX_AP_SSID_LEN 32
@@ -54,6 +56,8 @@ typedef struct {
54 int client_steps_to_buy; 56 int client_steps_to_buy;
55 int client_renewal_threshold_pct; 57 int client_renewal_threshold_pct;
56 int client_retry_interval_ms; 58 int client_retry_interval_ms;
59
60 payout_config_t payout;
57} tollgate_config_t; 61} tollgate_config_t;
58 62
59void tollgate_config_derive_unique(tollgate_config_t *cfg); 63void tollgate_config_derive_unique(tollgate_config_t *cfg);