forked from shardeum/shardeum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev_settings.patch
46 lines (44 loc) · 2.78 KB
/
dev_settings.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
diff --git a/src/config/index.ts b/src/config/index.ts
index 5ccae91..0647710 100644
--- a/src/config/index.ts
+++ b/src/config/index.ts
@@ -128,9 +128,9 @@ config = merge(config, {
p2p: {
cycleDuration: 60,
minNodesToAllowTxs: 1, // to allow single node networks
- baselineNodes: process.env.baselineNodes ? parseInt(process.env.baselineNodes) : 300, // config used for baseline for entering recovery, restore, and safety. Should be equivalient to minNodes on network startup
- minNodes: process.env.minNodes ? parseInt(process.env.minNodes) : 300,
- maxNodes: process.env.maxNodes ? parseInt(process.env.maxNodes) : 1100,
+ baselineNodes: process.env.baselineNodes ? parseInt(process.env.baselineNodes) : 100, // config used for baseline for entering recovery, restore, and safety. Should be equivalient to minNodes on network startup
+ minNodes: process.env.minNodes ? parseInt(process.env.minNodes) : 100,
+ maxNodes: process.env.maxNodes ? parseInt(process.env.maxNodes) : 1500,
maxJoinedPerCycle: 10,
maxSyncingPerCycle: 10,
maxRotatedPerCycle: process.env.maxRotatedPerCycle ? parseInt(process.env.maxRotatedPerCycle) : 1,
@@ -202,7 +202,7 @@ config = merge(config, {
//1.11.0
rotationEdgeToAvoid: 0, //we are moving away from this feature in current testing. There seem to be errors related to it
- allowActivePerCycle: 1,
+ allowActivePerCycle: 3,
maxStandbyCount: 30000, //max allowed standby nodes count
enableMaxStandbyCount: true,
@@ -247,7 +247,7 @@ config = merge(config, {
sharding: {
nodesPerConsensusGroup: process.env.nodesPerConsensusGroup
? parseInt(process.env.nodesPerConsensusGroup)
- : 10, //128 is the final goal
+ : 128, //128 is the final goal
nodesPerEdge: process.env.nodesPerEdge ? parseInt(process.env.nodesPerEdge) : 5,
executeInOneShard: true,
},
@@ -290,8 +290,8 @@
// '': DevSecurityLevel.Unauthorized,
// These are production keys. Use 'git apply use_test_key.patch' for unsafe local test keys
// Never merge a commit with changes to these lines without approval.
- 'a45f9a87e10d6dbd88c141e4fb293f96ab30441cbb77a4b04c577ba18d393505': DevSecurityLevel.Low,
- 'b51124e6d01e0684ff2b86eac9433d585a17319f15b393c8e4426af19117f704': DevSecurityLevel.Medium,
+ a45f9a87e10d6dbd88c141e4fb293f96ab30441cbb77a4b04c577ba18d393505: DevSecurityLevel.Low,
+ b51124e6d01e0684ff2b86eac9433d585a17319f15b393c8e4426af19117f704: DevSecurityLevel.Medium,
//this last line needs command to ignore auto formatting or prettier will strip the quotes!!
/* prettier-ignore */ 'c980f4dbdd40a9d334b3815b223e83d27e227892a109413e4bc114e8220bd281': DevSecurityLevel.High,
},