forked from shardeum/shardeum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
itn500.patch
50 lines (46 loc) · 2.84 KB
/
itn500.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
47
48
49
50
diff --git a/src/config/index.ts b/src/config/index.ts
index 5ccae91..2c17940 100644
--- a/src/config/index.ts
+++ b/src/config/index.ts
@@ -128,14 +128,14 @@ 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) : 500, // 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) : 500,
+ maxNodes: process.env.maxNodes ? parseInt(process.env.maxNodes) : 1500,
maxJoinedPerCycle: 10,
maxSyncingPerCycle: 10,
maxRotatedPerCycle: process.env.maxRotatedPerCycle ? parseInt(process.env.maxRotatedPerCycle) : 1,
firstCycleJoin: 0,
- maxSyncTimeFloor: 1200, //Using 6000 for a restore from archiver, then set config at runtime back to 1200
+ maxSyncTimeFloor: 12000, //Using 6000 for a restore from archiver, then set config at runtime back to 1200
// 1200=20 minutes. If the network lives a long time we may have to bump this up
syncBoostEnabled: false,
amountToGrow: 30,
@@ -190,7 +190,7 @@ config = merge(config, {
standbyListCyclesTTL: 1440, //nodes only need to refresh once every 24 hours (which is 1440 60s cycles!)
// 1.10.1
- extraNodesToAddInRestart: 5, //how many extra nodes to we add in restart phase so we dont get stuck in restore phase
+ extraNodesToAddInRestart: 20, //how many extra nodes to we add in restart phase so we dont get stuck in restore phase
// 1.10.1
cyclesToWaitForSyncStarted: 5, //raising this to 5 to reduce the chance of nodes getting booted out too soon
@@ -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: 4,
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,
},