Skip to content

Commit 7b86628

Browse files
committed
updated ProcessConfigsByRound with MaxConsecutiveRoundsOfRatingDecrease and MaxRoundsOfInactivityAccepted
1 parent 5296f83 commit 7b86628

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

config.toml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,39 @@ ProcessConfigsByEpoch = [
6464
]
6565

6666
ProcessConfigsByRound = [
67-
{ EnableRound = 0, MaxRoundsWithoutNewBlockReceived = 10, MaxRoundsWithoutCommittedBlock = 10, RoundModulusTriggerWhenSyncIsStuck = 20, MaxSyncWithErrorsAllowed = 10, MaxRoundsToKeepUnprocessedMiniBlocks = 300, MaxRoundsToKeepUnprocessedTransactions = 300, NumFloodingRoundsFastReacting = 10, NumFloodingRoundsSlowReacting = 2, NumFloodingRoundsOutOfSpecs = 2 },
68-
{ EnableRound = 99999999, MaxRoundsWithoutNewBlockReceived = 100, MaxRoundsWithoutCommittedBlock = 100, RoundModulusTriggerWhenSyncIsStuck = 200, MaxSyncWithErrorsAllowed = 100, MaxRoundsToKeepUnprocessedMiniBlocks = 3000, MaxRoundsToKeepUnprocessedTransactions = 3000, NumFloodingRoundsFastReacting = 100, NumFloodingRoundsSlowReacting = 20, NumFloodingRoundsOutOfSpecs = 20 },
67+
{
68+
EnableRound = 0,
69+
MaxRoundsWithoutNewBlockReceived = 10,
70+
MaxRoundsWithoutCommittedBlock = 10,
71+
RoundModulusTriggerWhenSyncIsStuck = 20,
72+
MaxSyncWithErrorsAllowed = 10,
73+
MaxRoundsToKeepUnprocessedMiniBlocks = 300,
74+
MaxRoundsToKeepUnprocessedTransactions = 300,
75+
NumFloodingRoundsFastReacting = 10,
76+
NumFloodingRoundsSlowReacting = 2,
77+
NumFloodingRoundsOutOfSpecs = 2,
78+
# MaxConsecutiveRoundsOfRatingDecrease represents the max number of consecutive rounds in which a block is not proposed
79+
# on a shard and the validators' rating could be decreased. If, for instance, a shard gets stuck for more rounds
80+
# than this value, then the validators rating decrease should stop so they won't get jailed
81+
MaxConsecutiveRoundsOfRatingDecrease = 600,
82+
# MaxRoundsOfInactivityAccepted defines the number of rounds missed by a main or higher level backup machine before
83+
# the current machine will take over and propose/sign blocks. Used in both single-key and multi-key modes.
84+
MaxRoundsOfInactivityAccepted = 3
85+
},
86+
{
87+
EnableRound = 99999999,
88+
MaxRoundsWithoutNewBlockReceived = 100,
89+
MaxRoundsWithoutCommittedBlock = 100,
90+
RoundModulusTriggerWhenSyncIsStuck = 200,
91+
MaxSyncWithErrorsAllowed = 100,
92+
MaxRoundsToKeepUnprocessedMiniBlocks = 3000,
93+
MaxRoundsToKeepUnprocessedTransactions = 3000,
94+
NumFloodingRoundsFastReacting = 100,
95+
NumFloodingRoundsSlowReacting = 20,
96+
NumFloodingRoundsOutOfSpecs = 20,
97+
MaxConsecutiveRoundsOfRatingDecrease = 6000,
98+
MaxRoundsOfInactivityAccepted = 30
99+
}
69100
]
70101

71102
EpochStartConfigsByEpoch = [

0 commit comments

Comments
 (0)