plebble
config.h
Go to the documentation of this file.
1 #ifndef USGOV_cbaf03b05d95078ca68f3246c8feddd07ac6da6ad323bc4050a4473f3a3bcf08
2 #define USGOV_cbaf03b05d95078ca68f3246c8feddd07ac6da6ad323bc4050a4473f3a3bcf08
3 
4 #include <string>
5 #include "ko.h"
6 
7 //-----Network topology------------------------------------
8 //#define PRIVATE_PERMISSIONED_MESH
9 //#define PUBLIC_PERMISSIONLESS_MESH
10 //#define PUBLIC_PERMISSIONED_RING
11 #define PUBLIC_PERMISSIONLESS_MESH
12 #define LOGDIR "/var/log/plebble"
13 //---------------------------------------------------------
14 
15 #define AUTOMATIC_UPDATES_PUBKEY "ysMCfLj9wt9ZdaaRaNtCS2WUJh8T5kvrh4ihHARKiTH1"
16 #define NODEMASTER_PUBKEY ""
17 #define AUTOMATIC_UPDATES_ACCOUNT "4NwEEwnQbnwB7p8yCBNkx9uj71ru"
18 #define ANDROID_APK_COMPONENT_ID "PuxQ2g"
19 #define PLATFORM "plebble"
20 #define DATADIR ".plebble"
21 #define LAYOFF_DAYS 20
22 #define UGAS "GAS"
23 #define LGAS "gas"
24 #define CFG_COUNTERS 0
25 #define CFG_CONNECTION_LOG 0
26 
27 #define CFG_CHANNEL 0
28 #define CFG_MAX_SUBSIDY 500000000
29 #define CFG_MAX_SIZE_DATAGRAM 20000000
30 #define CFG_LOGS 0
31 #define CFG_PORT 16672
32 #define CFG_PPORT 16672
33 #define CFG_WALLET_PORT 16673
34 #define CFG_WALLET_PPORT 16673
35 #define CFG_MAX_NODES 200
36 #define CFG_HMI_READY_TIMEOUT_SECS 1
37 #define CFG_MUTATION_PERIOD_SECS 300
38 #define CFG_AUTH_TIMEOUT_SECS 5
39 #define CFG_SENDQ_WMH 1000
40 #define CFG_SENDQ_SCHUNK 1500
41 #define CFG_DGRAM_ROUNDTRIP_TIMEOUT_SECS 5
42 
43 #define CFG_REPORT_REASON 1
44 
45 #define CFG_FCGI 0
46 
47 #ifdef PUBLIC_PERMISSIONLESS_MESH
48  #define CFG_PUBLIC_NETWORK
49  #define CFG_PERMISSIONLESS_NETWORK
50  #define CFG_TOPOLOGY_MESH
51 #endif
52 
53 #ifdef PRIVATE_PERMISSIONED_MESH
54  #define CFG_PRIVATE_NETWORK
55  #define CFG_PERMISSIONED_NETWORK
56  #define CFG_TOPOLOGY_MESH
57 #endif
58 
59 #ifdef PUBLIC_PERMISSIONED_RING
60  #define CFG_PUBLIC_NETWORK
61  #define CFG_PERMISSIONED_NETWORK
62  #define CFG_TOPOLOGY_RING
63 #endif
64 
65 
66 #ifdef CFG_PUBLIC_NETWORK
67 #ifdef CFG_PRIVATE_NETWORK
68 #error conflicting network type
69 #endif
70 #endif
71 
72 #ifdef CFG_PERMISSIONED_NETWORK
73 #ifdef CFG_PERMISSIONLESS_NETWORK
74 #error conflicting authority type
75 #endif
76 #endif
77 
78 #ifdef CFG_TOPOLOGY_RING
79 #ifdef CFG_TOPOLOGY_MESH
80 #error conflicting topologies
81 #endif
82 #endif
83 
84 #define HAVE_CFG
85 
86 #endif
87 
88 
89 
ko.h