@@ -59,39 +59,35 @@ ProcessConfigsByEpoch = [
5959 { EnableEpoch = 2032 , MaxMetaNoncesBehind = 75 , MaxMetaNoncesBehindForGlobalStuck = 120 , MaxShardNoncesBehind = 75 },
6060]
6161
62- # ProcessConfigsByRound represents the configuration of process configuration parameters by round
63- [[ProcessConfigsByRound ]]
64- EnableRound = 0
65- MaxRoundsWithoutNewBlockReceived = 10
66- MaxRoundsWithoutCommittedBlock = 10
67- RoundModulusTriggerWhenSyncIsStuck = 20
68- MaxSyncWithErrorsAllowed = 10
69- MaxRoundsToKeepUnprocessedMiniBlocks = 300
70- MaxRoundsToKeepUnprocessedTransactions = 300
71- NumFloodingRoundsFastReacting = 10
72- NumFloodingRoundsSlowReacting = 2
73- NumFloodingRoundsOutOfSpecs = 2
62+ ProcessConfigsByRound = [
63+ {
64+ EnableRound = 0 ,
65+ MaxRoundsWithoutNewBlockReceived = 10 ,
66+ MaxRoundsWithoutCommittedBlock = 10 ,
67+ RoundModulusTriggerWhenSyncIsStuck = 20 ,
68+ MaxSyncWithErrorsAllowed = 10 ,
69+ MaxRoundsToKeepUnprocessedMiniBlocks = 300 ,
70+ MaxRoundsToKeepUnprocessedTransactions = 300 ,
7471 # MaxConsecutiveRoundsOfRatingDecrease represents the max number of consecutive rounds in which a block is not proposed
7572 # on a shard and the validators' rating could be decreased. If, for instance, a shard gets stuck for more rounds
7673 # than this value, then the validators rating decrease should stop so they won't get jailed
77- MaxConsecutiveRoundsOfRatingDecrease = 600
74+ MaxConsecutiveRoundsOfRatingDecrease = 600 ,
7875 # MaxRoundsOfInactivityAccepted defines the number of rounds missed by a main or higher level backup machine before
7976 # the current machine will take over and propose/sign blocks. Used in both single-key and multi-key modes.
8077 MaxRoundsOfInactivityAccepted = 3
81-
82- [[ProcessConfigsByRound ]]
83- EnableRound = 29145300
84- MaxRoundsWithoutNewBlockReceived = 100
85- MaxRoundsWithoutCommittedBlock = 100
86- RoundModulusTriggerWhenSyncIsStuck = 200
87- MaxSyncWithErrorsAllowed = 100
88- MaxRoundsToKeepUnprocessedMiniBlocks = 3000
89- MaxRoundsToKeepUnprocessedTransactions = 3000
90- NumFloodingRoundsFastReacting = 100
91- NumFloodingRoundsSlowReacting = 20
92- NumFloodingRoundsOutOfSpecs = 20
93- MaxConsecutiveRoundsOfRatingDecrease = 6000
78+ },
79+ {
80+ EnableRound = 29145300 ,
81+ MaxRoundsWithoutNewBlockReceived = 100 ,
82+ MaxRoundsWithoutCommittedBlock = 100 ,
83+ RoundModulusTriggerWhenSyncIsStuck = 200 ,
84+ MaxSyncWithErrorsAllowed = 100 ,
85+ MaxRoundsToKeepUnprocessedMiniBlocks = 3000 ,
86+ MaxRoundsToKeepUnprocessedTransactions = 3000 ,
87+ MaxConsecutiveRoundsOfRatingDecrease = 6000 ,
9488 MaxRoundsOfInactivityAccepted = 30
89+ }
90+ ]
9591
9692EpochStartConfigsByEpoch = [
9793 { EnableEpoch = 0 , GracePeriodRounds = 25 , ExtraDelayForRequestBlockInfoInMilliseconds = 3000 },
@@ -522,7 +518,7 @@ ConsensusConfigsByEpoch = [
522518 # Ahead-of-Time transaction selection - pre-selects transactions before consensus round
523519 Enabled = true
524520 CacheSize = 10 # Number of pre-selection results to cache
525- SelectionTimeoutMs = 150
521+ SelectionTimeoutMs = 150 # Max time for AOT selection in milliseconds
526522
527523[TrieNodesChunksDataPool ]
528524 Name = " TrieNodesDataPool"
@@ -634,10 +630,9 @@ ConsensusConfigsByEpoch = [
634630
635631[Antiflood ]
636632 Enabled = true
637-
638633 [[Antiflood .ConfigsByRound ]]
639634 Round = 0
640- NumConcurrentResolverJobs = 50 # TODO: analyse for meta on bootstrap there was a constant used with value 10
635+ NumConcurrentResolverJobs = 50
641636 NumConcurrentResolvingTrieNodesJobs = 3
642637
643638 [Antiflood .ConfigsByRound .FastReacting ]
@@ -650,9 +645,9 @@ ConsensusConfigsByEpoch = [
650645 Threshold = 10 # if consensus size will exceed this value, then
651646 Factor = 1.0 # increase the base value with [factor*consensus size]
652647 [Antiflood .ConfigsByRound .FastReacting .BlackList ]
653- ThresholdNumMessagesPerInterval = 10000
654- ThresholdSizePerInterval = 12388608 # 12MB /s
655- NumFloodingRounds = 100
648+ ThresholdNumMessagesPerInterval = 1000
649+ ThresholdSizePerInterval = 8388608 # 8MB /s
650+ NumFloodingRounds = 10
656651 PeerBanDurationInSeconds = 300
657652
658653 [Antiflood .ConfigsByRound .SlowReacting ]
@@ -665,24 +660,24 @@ ConsensusConfigsByEpoch = [
665660 Threshold = 10 # if consensus size will exceed this value, then
666661 Factor = 0.0 # increase the base value with [factor*consensus size]
667662 [Antiflood .ConfigsByRound .SlowReacting .BlackList ]
668- ThresholdNumMessagesPerInterval = 100000
669- ThresholdSizePerInterval = 60748736 # 60MB /interval
670- NumFloodingRounds = 20
663+ ThresholdNumMessagesPerInterval = 10000
664+ ThresholdSizePerInterval = 37748736 # 36MB /interval
665+ NumFloodingRounds = 2
671666 PeerBanDurationInSeconds = 3600
672667
673668 [Antiflood .ConfigsByRound .OutOfSpecs ]
674669 IntervalInSeconds = 1
675670 ReservedPercent = 0.0
676671 [Antiflood .ConfigsByRound .OutOfSpecs .PeerMaxInput ]
677- BaseMessagesPerInterval = 20000
678- TotalSizePerInterval = 104857600 # 100MB /interval
672+ BaseMessagesPerInterval = 2000
673+ TotalSizePerInterval = 10485760 # 10MB /interval
679674 [Antiflood .ConfigsByRound .OutOfSpecs .PeerMaxInput .IncreaseFactor ]
680675 Threshold = 0 # if consensus size will exceed this value, then
681676 Factor = 0.0 # increase the base value with [factor*consensus size]
682677 [Antiflood .ConfigsByRound .OutOfSpecs .BlackList ]
683- ThresholdNumMessagesPerInterval = 36000
684- ThresholdSizePerInterval = 18582912 # 18MB /interval
685- NumFloodingRounds = 20
678+ ThresholdNumMessagesPerInterval = 3600
679+ ThresholdSizePerInterval = 12582912 # 12MB /interval
680+ NumFloodingRounds = 2
686681 PeerBanDurationInSeconds = 3600
687682
688683 [Antiflood .ConfigsByRound .PeerMaxOutput ]
@@ -702,12 +697,11 @@ ConsensusConfigsByEpoch = [
702697 [Antiflood .ConfigsByRound .TxAccumulator ]
703698 # MaxAllowedTimeInMilliseconds is used as a time frame in which the node gathers transactions.
704699 # After this period, collected transactions will be sent on the p2p topics
705- MaxAllowedTimeInMilliseconds = 80
700+ MaxAllowedTimeInMilliseconds = 250
706701 # MaxDeviationTimeInMilliseconds represents the time in miliseconds that will cause the effectual time frame be
707702 # less than the specified max value. This is used to create desynchronizations between senders as to not
708703 # clutter the network exactly in the same moment
709704 MaxDeviationTimeInMilliseconds = 25
710- # Antiflood config ends here for Supernova
711705
712706 [[Antiflood .ConfigsByRound ]]
713707 Round = 29145300
@@ -718,60 +712,60 @@ ConsensusConfigsByEpoch = [
718712 IntervalInSeconds = 1
719713 ReservedPercent = 20.0
720714 [Antiflood .ConfigsByRound .FastReacting .PeerMaxInput ]
721- BaseMessagesPerInterval = 2800
722- TotalSizePerInterval = 41943040 # 4MB/s
715+ BaseMessagesPerInterval = 280
716+ TotalSizePerInterval = 4194304 # 4MB/s
723717 [Antiflood .ConfigsByRound .FastReacting .PeerMaxInput .IncreaseFactor ]
724718 Threshold = 10 # if consensus size will exceed this value, then
725719 Factor = 1.0 # increase the base value with [factor*consensus size]
726720 [Antiflood .ConfigsByRound .FastReacting .BlackList ]
727- ThresholdNumMessagesPerInterval = 100000
728- ThresholdSizePerInterval = 123886080 # 12MB/s
729- NumFloodingRounds = 10
721+ ThresholdNumMessagesPerInterval = 10000
722+ ThresholdSizePerInterval = 12388608 # 12MB/s
723+ NumFloodingRounds = 100
730724 PeerBanDurationInSeconds = 300
731725
732726 [Antiflood .ConfigsByRound .SlowReacting ]
733727 IntervalInSeconds = 30
734728 ReservedPercent = 20.0
735729 [Antiflood .ConfigsByRound .SlowReacting .PeerMaxInput ]
736- BaseMessagesPerInterval = 60000
737- TotalSizePerInterval = 188743680 # 18MB/interval
730+ BaseMessagesPerInterval = 6000
731+ TotalSizePerInterval = 18874368 # 18MB/interval
738732 [Antiflood .ConfigsByRound .SlowReacting .PeerMaxInput .IncreaseFactor ]
739733 Threshold = 10 # if consensus size will exceed this value, then
740734 Factor = 0.0 # increase the base value with [factor*consensus size]
741735 [Antiflood .ConfigsByRound .SlowReacting .BlackList ]
742- ThresholdNumMessagesPerInterval = 1000000
743- ThresholdSizePerInterval = 607487360 # 60MB/interval
744- NumFloodingRounds = 2
736+ ThresholdNumMessagesPerInterval = 100000
737+ ThresholdSizePerInterval = 60748736 # 60MB/interval
738+ NumFloodingRounds = 20
745739 PeerBanDurationInSeconds = 3600
746740
747741 [Antiflood .ConfigsByRound .OutOfSpecs ]
748742 IntervalInSeconds = 1
749743 ReservedPercent = 0.0
750744 [Antiflood .ConfigsByRound .OutOfSpecs .PeerMaxInput ]
751- BaseMessagesPerInterval = 200000
752- TotalSizePerInterval = 504857600 # 100MB/interval
745+ BaseMessagesPerInterval = 20000
746+ TotalSizePerInterval = 104857600 # 100MB/interval
753747 [Antiflood .ConfigsByRound .OutOfSpecs .PeerMaxInput .IncreaseFactor ]
754748 Threshold = 0 # if consensus size will exceed this value, then
755749 Factor = 0.0 # increase the base value with [factor*consensus size]
756750 [Antiflood .ConfigsByRound .OutOfSpecs .BlackList ]
757- ThresholdNumMessagesPerInterval = 360000
758- ThresholdSizePerInterval = 185829120 # 18MB/interval
759- NumFloodingRounds = 2
751+ ThresholdNumMessagesPerInterval = 36000
752+ ThresholdSizePerInterval = 18582912 # 18MB/interval
753+ NumFloodingRounds = 20
760754 PeerBanDurationInSeconds = 3600
761755
762756 [Antiflood .ConfigsByRound .PeerMaxOutput ]
763757 [Antiflood .ConfigsByRound .PeerMaxOutput .PeerMaxInput ]
764- BaseMessagesPerInterval = 150000
765- TotalSizePerInterval = 309715200 # 30MB /s
758+ BaseMessagesPerInterval = 150
759+ TotalSizePerInterval = 2097152 # 2MB /s
766760
767761 [Antiflood .ConfigsByRound .Cache ]
768762 Name = " Antiflood"
769- Capacity = 70000
763+ Capacity = 7000
770764 Type = " LRU"
771765 [Antiflood .ConfigsByRound .Topic ]
772- DefaultMaxMessagesPerSec = 150000
773- MaxMessages = [{ Topic = " shardBlocks*" , NumMessagesPerSec = 300 },
774- { Topic = " metachainBlocks" , NumMessagesPerSec = 300 }]
766+ DefaultMaxMessagesPerSec = 15000
767+ MaxMessages = [{ Topic = " shardBlocks*" , NumMessagesPerSec = 30 },
768+ { Topic = " metachainBlocks" , NumMessagesPerSec = 30 }]
775769
776770 [Antiflood .ConfigsByRound .TxAccumulator ]
777771 # MaxAllowedTimeInMilliseconds is used as a time frame in which the node gathers transactions.
@@ -781,7 +775,7 @@ ConsensusConfigsByEpoch = [
781775 # less than the specified max value. This is used to create desynchronizations between senders as to not
782776 # clutter the network exactly in the same moment
783777 MaxDeviationTimeInMilliseconds = 25
784-
778+ # Antiflood config ends here for Supernova
785779
786780[WebServerAntiflood ]
787781 WebServerAntifloodEnabled = true
@@ -899,6 +893,7 @@ ConsensusConfigsByEpoch = [
899893[BlockSizeThrottleConfig ]
900894 MinSizeInBytes = 104857 # 104857 is 10% from 1MB
901895 MaxSizeInBytes = 943718 # 943718 is 90% from 1MB
896+ MaxExecResSizeInBytes = 104857 # 104857 is 10% from 1MB
902897
903898[VirtualMachine ]
904899 [VirtualMachine .Execution ]
@@ -1191,6 +1186,10 @@ ConsensusConfigsByEpoch = [
11911186 CacheSpanInSec = 30
11921187 CacheExpiryInSec = 30
11931188
1189+ [DirectSentTransactions ]
1190+ CacheSpanInSec = 30
1191+ CacheExpiryInSec = 30
1192+
11941193[ExecutionResultInclusionEstimator ]
11951194 # Safety margin = 110 -> 110% -> 10% buffer
11961195 SafetyMargin = 110
0 commit comments