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:
Diffstat (limited to 'main/config.h')
-rw-r--r--main/config.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/main/config.h b/main/config.h
index 370e6cc..9463845 100644
--- a/main/config.h
+++ b/main/config.h
@@ -15,6 +15,13 @@
15#define TOLLGATE_MAX_RELAYS 4 15#define TOLLGATE_MAX_RELAYS 4
16#define TOLLGATE_MAX_SEED_RELAYS 8 16#define TOLLGATE_MAX_SEED_RELAYS 8
17 17
18typedef enum {
19 MINING_PAYOUT_AUTO,
20 MINING_PAYOUT_POOL,
21 MINING_PAYOUT_UPSTREAM,
22 MINING_PAYOUT_PROXY_ONLY
23} mining_payout_mode_t;
24
18typedef struct { 25typedef struct {
19 char ssid[32]; 26 char ssid[32];
20 char password[64]; 27 char password[64];
@@ -74,10 +81,24 @@ typedef struct {
74 81
75 char nostr_seed_relays[TOLLGATE_MAX_SEED_RELAYS][128]; 82 char nostr_seed_relays[TOLLGATE_MAX_SEED_RELAYS][128];
76 int nostr_seed_relay_count; 83 int nostr_seed_relay_count;
84 int nostr_sync_interval_s;
85 int nostr_fallback_sync_interval_s;
77 86
78 bool market_enabled; 87 bool market_enabled;
79 int market_scan_interval_s; 88 int market_scan_interval_s;
80 bool client_auto_switch; 89 bool client_auto_switch;
90
91 bool mining_enabled;
92 mining_payout_mode_t mining_payout_mode;
93 char stratum_host[128];
94 uint16_t stratum_port;
95 char stratum_user[128];
96 char stratum_pass[64];
97 char stratum_fallback_host[128];
98 uint16_t stratum_fallback_port;
99 uint16_t mining_port;
100 uint64_t hashprice_sats_per_ghs_day;
101 bool mining_sandbox_mint_access;
81} tollgate_config_t; 102} tollgate_config_t;
82 103
83void tollgate_config_derive_unique(tollgate_config_t *cfg); 104void tollgate_config_derive_unique(tollgate_config_t *cfg);