-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.toml
949 lines (849 loc) · 35.3 KB
/
config.toml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
# GeneralSettings section of the node
[GeneralSettings]
# StatusPollingIntervalSec represents the no of seconds between multiple polling for the status for AppStatusHandler
StatusPollingIntervalSec = 2
# MaxComputableRounds represents the max number of rounds computable in a round
# by the validator statistics processor
MaxComputableRounds = 100
# StartInEpochEnabled represents that the fast bootstrap mechanism from the network is enabled if data is not
# available in local disk
StartInEpochEnabled = true
# ChainID represents the chain identifier
# The currently supported constants are:
# "1" for Mainnet
# "D" for Devnet
# "T" for Testnet
ChainID = "D"
# MinTransactionVersion represents the minimum transaction version accepted
MinTransactionVersion = 1
# GenesisString represents the encoded string for the genesis block
GenesisString = "546f207369676e69666963616e746c7920616363656c657261746520616c6c20746563686e6f6c6f676965732c20616e64207261646963616c6c7920696d70726f766520736f63696574792c2068756d616e6974792077696c6c206861766520746f206d69677261746520746f206120706f737420736361726369747920776f726c642e20456c726f6e642069732074686520666972737420636f6d706c65746520736f6c7574696f6e20746861742077696c6c20617474656d707420616e64206163686965766520746869732e0a0a54686520666f756e64696e67207465616d206f6620456c726f6e642069733a0a42656e69616d696e204d696e63750a4c756369616e204d696e63750a4c756369616e20546f6465610a41647269616e20446f62726974610a526f6265727420536173750a5261647520436869730a49756c69616e2050617363616c61750a53656261737469616e204d617269616e0a416e64726569204d6172696e6963610a437269737469616e20436f72636f7665616e750a44616e20566f6963750a44616e69656c20536572620a0a4e6f7461626c6520636f6e7472696275746f72733a0a42656e69616d696e20447261736f7665616e0a46656c69782043726973616e0a436f6e7374616e74696e20546f766973690a43616d696c2042616e63696f69750a416e647265692042616e63696f69750a416e64726569204164616d0a5365766572204d6f6c646f7665616e"
# GenesisMaxNumberOfShards represents the maximum number of shards to be created at genesis (excluding metaChain shard)
GenesisMaxNumberOfShards = 3
# MaxConsecutiveRoundsOfRatingDecrease represents the max number of consecutive rounds in which a block is not proposed
# on a shard and the validators' rating could be decreased. If, for instance, a shard gets stuck for more rounds
# than this value, then the validators rating decrease should stop so they won't get jailed
MaxConsecutiveRoundsOfRatingDecrease = 600
# SyncProcessTimeInMillis is the value in milliseconds used when processing blocks while synchronizing blocks
SyncProcessTimeInMillis = 12000
# SetGuardianEpochsDelay represents the delay in epochs between the execution time of the SetGuardian transaction and
# the activation of the configured guardian.
# Make sure that this is greater than the unbonding period!
SetGuardianEpochsDelay = 4 # 2 times the maximum unbonding period which can be 2 epochs - 1 round
[HardwareRequirements]
CPUFlags = ["SSE4", "SSE42"]
[Versions]
DefaultVersion = "default"
VersionsByEpochs = [
{ StartEpoch = 0, Version = "*" },
# The value of StartEpoch parameter for version 2 should be the same with the ScheduledMiniBlocksEnableEpoch flag from enableEpoch.toml file
{ StartEpoch = 1, Version = "2" },
]
[Versions.Cache]
Name = "VersionsCache"
Capacity = 100
Type = "LRU"
[StoragePruning]
# If the Enabled flag is set to false, then the storers won't divide epochs into separate dbs
Enabled = true
# If this flag is set to false, the node won't delete any database between epochs
# Applicable only for validators
ValidatorCleanOldEpochsData = true
# If this flag is set to false, the node won't delete any database between epochs
# Applicable only for observers
ObserverCleanOldEpochsData = false
# If this flag is set to false, the node won't delete the AccountsTrie database for old epochs
# Applicable for both observers and validators
# WARNING! Setting this to false will increase each epoch's directory size with the trie snapshot,
# which might easily cause the node to run out of disk space.
AccountsTrieCleanOldEpochsData = true
# AccountsTrieSkipRemovalCustomPattern represents the custom pattern that determines when AccountsTrie database
# doesn't have to be cleaned
# Format: %x,%y - if an epoch is divisible by x or by y, then the AccountsTrie database won't be removed
# If empty, then all databases will be removed
# If invalid format, then an error will be returned
# Applicable only if AccountsTrieCleanOldEpochsData is set to true
AccountsTrieSkipRemovalCustomPattern = "%600"
# NumEpochsToKeep - if the flag above is set to true, this will set the number of epochs to keep in the storage.
# Epochs older that (current epoch - NumOfEpochsToKeep) will be removed
NumEpochsToKeep = 4
# NumActivePersisters - this will set the number of persisters to keep active at a moment. This works even if
# the node removes old epochs data or not. In case of a node which removes old epochs data, this value has to be
# smaller or equal to the NumOfEpochsToKeep flag
NumActivePersisters = 3
# FullArchiveNumActivePersisters represents the number of persisters to be kept in cache as to allow better response
# to inquiring peers. This value will get multiplied by the number of persisters required by the node to function so
# it is a good idea to increase the maximum number of opened files allowed by the operating system
FullArchiveNumActivePersisters = 10
[MiniBlocksStorage]
[MiniBlocksStorage.Cache]
Name = "MiniBlocksStorage"
Capacity = 1000
Type = "SizeLRU"
SizeInBytes = 104857600 #100MB
[MiniBlocksStorage.DB]
FilePath = "MiniBlocks"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 100
MaxOpenFiles = 10
[ReceiptsStorage]
[ReceiptsStorage.Cache]
Name = "ReceiptsStorage"
Capacity = 1000
Type = "SizeLRU"
SizeInBytes = 10485760 #10MB
[ReceiptsStorage.DB]
FilePath = "Receipts"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 100
MaxOpenFiles = 10
[ScheduledSCRsStorage]
[ScheduledSCRsStorage.Cache]
Name = "ScheduledSCRsStorage"
Capacity = 1000
Type = "SizeLRU"
SizeInBytes = 10485760 #10MB
[ScheduledSCRsStorage.DB]
FilePath = "ScheduledSCRs"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 100
MaxOpenFiles = 10
[PeerBlockBodyStorage]
[PeerBlockBodyStorage.Cache]
Name = "PeerBlockBodyStorage"
Capacity = 1000
Type = "SizeLRU"
SizeInBytes = 104857600 #100MB
[PeerBlockBodyStorage.DB]
FilePath = "PeerBlocks"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 100
MaxOpenFiles = 10
[BlockHeaderStorage]
[BlockHeaderStorage.Cache]
Name = "BlockHeaderStorage"
Capacity = 1000
Type = "SizeLRU"
SizeInBytes = 3145728 #3MB
[BlockHeaderStorage.DB]
FilePath = "BlockHeaders"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 100
MaxOpenFiles = 10
[BootstrapStorage]
[BootstrapStorage.Cache]
Name = "BootstrapStorage"
Capacity = 1000
Type = "SizeLRU"
SizeInBytes = 104857600 #100MB
[BootstrapStorage.DB]
FilePath = "BootstrapData"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 100
MaxOpenFiles = 10
[MetaBlockStorage]
[MetaBlockStorage.Cache]
Name = "MetaBlockStorage"
Capacity = 1000
Type = "SizeLRU"
SizeInBytes = 20971520 #20MB
[MetaBlockStorage.DB]
FilePath = "MetaBlock"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 100
MaxOpenFiles = 10
[TxStorage]
[TxStorage.Cache]
Name = "TxStorage"
Capacity = 500000
Type = "SizeLRU"
SizeInBytes = 209715200 #200MB
[TxStorage.DB]
FilePath = "Transactions"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 30000
MaxOpenFiles = 10
[UnsignedTransactionStorage]
[UnsignedTransactionStorage.Cache]
Name = "UnsignedTransactionStorage"
Capacity = 250000
Type = "SizeLRU"
SizeInBytes = 104857600 #100MB
[UnsignedTransactionStorage.DB]
FilePath = "UnsignedTransactions"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 20000
MaxOpenFiles = 10
[RewardTxStorage]
[RewardTxStorage.Cache]
Name = "RewardTxStorage"
Capacity = 75000
Type = "SizeLRU"
SizeInBytes = 52428800 #50MB
[RewardTxStorage.DB]
FilePath = "RewardTransactions"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 20000
MaxOpenFiles = 10
[SmartContractsStorage]
[SmartContractsStorage.Cache]
Name = "SmartContractsStorage"
Capacity = 1000
Type = "SizeLRU"
SizeInBytes = 52428800 #50MB
[SmartContractsStorage.DB]
FilePath = "SmartContractsStorage"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 100
MaxOpenFiles = 10
[SmartContractsStorageSimulate]
[SmartContractsStorageSimulate.Cache]
Name = "SmartContractsStorageSimulate"
Capacity = 1000
Type = "SizeLRU"
SizeInBytes = 52428800 #50MB
[SmartContractsStorageSimulate.DB]
FilePath = "SmartContractsStorageSimulate"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 100
MaxOpenFiles = 10
[SmartContractsStorageForSCQuery]
[SmartContractsStorageForSCQuery.Cache]
Name = "SmartContractsStorageForSCQuery"
Capacity = 1000
Type = "SizeLRU"
SizeInBytes = 52428800 #50MB
[SmartContractsStorageForSCQuery.DB]
FilePath = "SmartContractsStorageForSCQuery"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 100
MaxOpenFiles = 10
[StatusMetricsStorage]
[StatusMetricsStorage.Cache]
Name = "StatusMetricsStorage"
Capacity = 1000
Type = "LRU"
[StatusMetricsStorage.DB]
FilePath = "StatusMetricsStorageDB"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 100
MaxOpenFiles = 10
[TrieEpochRootHashStorage]
[TrieEpochRootHashStorage.Cache]
Name = "TrieEpochRootHashCache"
Capacity = 1000
Type = "SizeLRU"
SizeInBytes = 314572800 #300MB
[TrieEpochRootHashStorage.DB]
FilePath = "TrieEpochRootHashStorageDB"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 500
MaxOpenFiles = 10
[ShardHdrNonceHashStorage]
[ShardHdrNonceHashStorage.Cache]
Name = "ShardHdrNonceHashStorage"
Capacity = 1000
Type = "SizeLRU"
SizeInBytes = 3145728 #3MB
[ShardHdrNonceHashStorage.DB]
FilePath = "ShardHdrHashNonce"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 100
MaxOpenFiles = 10
[MetaHdrNonceHashStorage]
[MetaHdrNonceHashStorage.Cache]
Name = "MetaHdrNonceHashStorage"
Capacity = 1000
Type = "SizeLRU"
SizeInBytes = 3145728 #3MB
[MetaHdrNonceHashStorage.DB]
FilePath = "MetaHdrHashNonce"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 100
MaxOpenFiles = 10
[AccountsTrieStorage]
[AccountsTrieStorage.Cache]
Name = "AccountsTrieStorage"
Capacity = 500000
Type = "SizeLRU"
SizeInBytes = 314572800 #300MB
[AccountsTrieStorage.DB]
FilePath = "AccountsTrie"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 45000
MaxOpenFiles = 10
ShardIDProviderType = "BinarySplit"
NumShards = 4
[PeerAccountsTrieStorage]
[PeerAccountsTrieStorage.Cache]
Name = "PeerAccountsTrieStorage"
Capacity = 5000
Type = "SizeLRU"
SizeInBytes = 104857600 #100MB
[PeerAccountsTrieStorage.DB]
FilePath = "PeerAccountsTrie"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 1000
MaxOpenFiles = 10
ShardIDProviderType = "BinarySplit"
NumShards = 4
[EvictionWaitingList]
#total max size ~ 2 * [(RoothashesSize * 32) + (HashesSize * 32)]
RootHashesSize = 10000
HashesSize = 100000
[EvictionWaitingList.DB]
FilePath = "EvictionWaitingList"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 100
MaxOpenFiles = 10
[TrieStorageManagerConfig]
PruningBufferLen = 100000
SnapshotsBufferLen = 1000000
SnapshotsGoroutineNum = 200
[HeadersPoolConfig]
MaxHeadersPerShard = 1000
NumElementsToRemoveOnEviction = 200
[BadBlocksCache]
Name = "BadBlocksCache"
Capacity = 1000
Type = "SizeLRU"
SizeInBytes = 3145728 #3MB
[TxBlockBodyDataPool]
Name = "TxBlockBodyDataPool"
Capacity = 100000
Type = "SizeLRU"
SizeInBytes = 314572800 #300MB
[PeerBlockBodyDataPool]
Name = "PeerBlockBodyDataPool"
Capacity = 1000
Type = "SizeLRU"
SizeInBytes = 314572800 #300MB
[TxDataPool]
Name = "TxDataPool"
Capacity = 600000
SizePerSender = 5000
SizeInBytes = 419430400 #400MB
SizeInBytesPerSender = 12288000 #12MB
Type = "TxCache"
Shards = 16
[TrieNodesChunksDataPool]
Name = "TrieNodesDataPool"
Capacity = 400
Type = "SizeLRU"
SizeInBytes = 104857600 #100MB
[SmartContractDataPool]
Name = "SmartContractDataPool"
Capacity = 900000
Type = "SizeLRU"
SizeInBytes = 209715200 #200MB
[WhiteListPool]
Name = "WhiteListPool"
Capacity = 100000
Type = "FIFOSharded"
Shards = 10
[WhiteListerVerifiedTxs]
Name = "WhiteListerVerifiedTxs"
Capacity = 50000
Type = "FIFOSharded"
Shards = 50
[UnsignedTransactionDataPool]
Name = "UnsignedTransactionDataPool"
Capacity = 75000 # per each pair (sourceShard, destinationShard)
SizeInBytes = 31457280 # 30MB per each pair (sourceShard, destinationShard)
Shards = 4
[RewardTransactionDataPool]
Name = "RewardTransactionDataPool"
Capacity = 75000 # per each pair (metachain, destinationShard)
SizeInBytes = 26214400 # 25MB per each pair (metachain, destinationShard)
Shards = 4
[ValidatorInfoPool]
Name = "ValidatorInfoPool"
Capacity = 10000
SizeInBytes = 31457280 #30MB
Shards = 4
#PublicKeyPeerId represents the main cache used to map MultiversX block signing public keys to their associated peer id's.
[PublicKeyPeerId]
Name = "PublicKeyPeerId"
Capacity = 30000
Type = "LRU"
#PublicKeyShardId is the fallback cache used to map public keys to the shard they belong.
[PublicKeyShardId]
Name = "PublicKeyShardId"
Capacity = 30000
Type = "LRU"
#PublicKeyPIDSignature is the cache that is used to map a public key to a peerId-signature pair.
[PublicKeyPIDSignature]
Name = "PublicKeyPIDSignature"
Capacity = 3000
Type = "LRU"
#PeerIdShardId is the fallback cache used in network sharding to allow direct connection between peer id and shard.
# Used mainly for observers.
[PeerIdShardId]
Name = "PeerIdShardId"
Capacity = 30000
Type = "LRU"
[PeerHonesty]
Name = "PeerHonesty"
Capacity = 5000
Type = "LRU"
[VMOutputCacher]
Name = "VMOutputCacher"
Capacity = 10000
Type = "LRU"
[PeersRatingConfig]
TopRatedCacheCapacity = 5000
BadRatedCacheCapacity = 5000
[PoolsCleanersConfig]
MaxRoundsToKeepUnprocessedMiniBlocks = 300 # max number of rounds unprocessed miniblocks are kept in pool
MaxRoundsToKeepUnprocessedTransactions = 300 # max number of rounds unprocessed transactions are kept in pool
[TrieSyncStorage]
Capacity = 300000
SizeInBytes = 104857600 #100MB
EnableDB = false
[TrieSyncStorage.DB]
FilePath = "TrieSyncStorageDB"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 45000
MaxOpenFiles = 10
UseTmpAsFilePath = true
[Antiflood]
Enabled = true
NumConcurrentResolverJobs = 50
NumConcurrentResolvingTrieNodesJobs = 3
[Antiflood.FastReacting]
IntervalInSeconds = 1
ReservedPercent = 20.0
[Antiflood.FastReacting.PeerMaxInput]
BaseMessagesPerInterval = 140
TotalSizePerInterval = 4194304 #4MB/s
[Antiflood.FastReacting.PeerMaxInput.IncreaseFactor]
Threshold = 10 #if consensus size will exceed this value, then
Factor = 1.0 #increase the base value with [factor*consensus size]
[Antiflood.FastReacting.BlackList]
ThresholdNumMessagesPerInterval = 1000
ThresholdSizePerInterval = 8388608 #8MB/s
NumFloodingRounds = 10
PeerBanDurationInSeconds = 300
[Antiflood.SlowReacting]
IntervalInSeconds = 30
ReservedPercent = 20.0
[Antiflood.SlowReacting.PeerMaxInput]
BaseMessagesPerInterval = 6000
TotalSizePerInterval = 18874368 # 18MB/interval
[Antiflood.SlowReacting.PeerMaxInput.IncreaseFactor]
Threshold = 10 #if consensus size will exceed this value, then
Factor = 0.0 #increase the base value with [factor*consensus size]
[Antiflood.SlowReacting.BlackList]
ThresholdNumMessagesPerInterval = 10000
ThresholdSizePerInterval = 37748736 # 36MB/interval
NumFloodingRounds = 2
PeerBanDurationInSeconds = 3600
[Antiflood.OutOfSpecs]
IntervalInSeconds = 1
ReservedPercent = 0.0
[Antiflood.OutOfSpecs.PeerMaxInput]
BaseMessagesPerInterval = 2000
TotalSizePerInterval = 10485760 # 10MB/interval
[Antiflood.OutOfSpecs.PeerMaxInput.IncreaseFactor]
Threshold = 0 #if consensus size will exceed this value, then
Factor = 0.0 #increase the base value with [factor*consensus size]
[Antiflood.OutOfSpecs.BlackList]
ThresholdNumMessagesPerInterval = 3600
ThresholdSizePerInterval = 12582912 # 12MB/interval
NumFloodingRounds = 2
PeerBanDurationInSeconds = 3600
[Antiflood.PeerMaxOutput]
BaseMessagesPerInterval = 75
TotalSizePerInterval = 2097152 #2MB/s
[Antiflood.Cache]
Name = "Antiflood"
Capacity = 7000
Type = "LRU"
[Antiflood.Topic]
DefaultMaxMessagesPerSec = 15000
MaxMessages = [{ Topic = "shardBlocks*", NumMessagesPerSec = 30 },
{ Topic = "metachainBlocks", NumMessagesPerSec = 30 }]
[Antiflood.TxAccumulator]
# MaxAllowedTimeInMilliseconds is used as a time frame in which the node gathers transactions.
# After this period, collected transactions will be sent on the p2p topics
MaxAllowedTimeInMilliseconds = 250
# MaxDeviationTimeInMilliseconds represents the time in miliseconds that will cause the effectual time frame be
# less than the specified max value. This is used to create desynchronizations between senders as to not
# clutter the network exactly in the same moment
MaxDeviationTimeInMilliseconds = 25
[WebServerAntiflood]
WebServerAntifloodEnabled = true
# SimultaneousRequests represents the number of concurrent requests accepted by the web server
# this is a global throttler that acts on all http connections regardless of the originating source
SimultaneousRequests = 100
# SameSourceRequests defines how many requests are allowed from the same source in the specified
# time frame (SameSourceResetIntervalInSec)
SameSourceRequests = 10000
# SameSourceResetIntervalInSec time frame between counter reset, in seconds
SameSourceResetIntervalInSec = 1
# TrieOperationsDeadlineMilliseconds represents the maximum duration that an API call targeting a trie operation
# can take.
TrieOperationsDeadlineMilliseconds = 10000
# GetAddressesBulkMaxSize represents the maximum number of addresses to be fetched in a bulk per API request. 0 means unlimited
GetAddressesBulkMaxSize = 100
# VmQueryDelayAfterStartInSec represents the number of seconds to wait when starting node before accepting vm query requests
VmQueryDelayAfterStartInSec = 120
# EndpointsThrottlers represents a map for maximum simultaneous go routines for an endpoint
EndpointsThrottlers = [{ Endpoint = "/transaction/:hash", MaxNumGoRoutines = 10 },
{ Endpoint = "/transaction/send", MaxNumGoRoutines = 2 },
{ Endpoint = "/transaction/simulate", MaxNumGoRoutines = 1 },
{ Endpoint = "/transaction/send-multiple", MaxNumGoRoutines = 2 }]
[AddressPubkeyConverter]
Length = 32
Type = "bech32"
SignatureLength = 64
Hrp = "erd"
[ValidatorPubkeyConverter]
Length = 96
Type = "hex"
SignatureLength = 48
[Hasher]
Type = "blake2b"
[MultisigHasher]
Type = "blake2b"
[TxSignHasher]
Type = "keccak"
# The main marshalizer, used in internodes communication
# Type identifies the marshalizer
# SizeCheckDelta the maximum allow drift between the input data buffer and
# the reencoded version (in percents).
# 0 disables the feature.
[Marshalizer]
Type = "gogo protobuf"
SizeCheckDelta = 10
# The marshalizer used for smartcontracts data exchange
[VmMarshalizer]
Type = "json"
# The marshalizer used in transaction signing
[TxSignMarshalizer]
Type = "json"
[EpochStartConfig]
GenesisEpoch = 0
MinRoundsBetweenEpochs = 2400
RoundsPerEpoch = 2400
# Min and Max ShuffledOutRestartThreshold represents the minimum and maximum duration of an epoch (in percentage) after a node which
# has been shuffled out has to restart its process in order to start in a new shard
MinShuffledOutRestartThreshold = 0.06
MaxShuffledOutRestartThreshold = 0.30
MinNumConnectedPeersToStart = 6
MinNumOfPeersToConsiderBlockValid = 6
ExtraDelayForRequestBlockInfoInMilliseconds = 3000
# ResourceStats, if enabled, will output in a folder called "stats"
# resource statistics. For example: number of active go routines, memory allocation, number of GC sweeps, etc.
# RefreshIntervalInSec will tell how often a new line containing stats should be added in stats file
[ResourceStats]
Enabled = true
RefreshIntervalInSec = 30
[ValidatorStatistics]
CacheRefreshIntervalInSec = 60
# Consensus type which will be used (the current implementation can manage "bn" and "bls")
# When consensus type is "bls" the multisig hasher type should be "blake2b"
[Consensus]
Type = "bls"
[NTPConfig]
Hosts = ["time.google.com", "time.cloudflare.com", "time.apple.com"]
Port = 123
TimeoutMilliseconds = 100
SyncPeriodSeconds = 3600
Version = 0 # Setting 0 means 'use default value'
[StateTriesConfig]
SnapshotsEnabled = true
AccountsStatePruningEnabled = false
PeerStatePruningEnabled = true
MaxStateTrieLevelInMemory = 5
MaxPeerTrieLevelInMemory = 5
StateStatisticsEnabled = false
[BlockSizeThrottleConfig]
MinSizeInBytes = 104857 # 104857 is 10% from 1MB
MaxSizeInBytes = 943718 # 943718 is 90% from 1MB
[VirtualMachine]
[VirtualMachine.Execution]
TimeOutForSCExecutionInMilliseconds = 10000 # 10 seconds = 10000 milliseconds
WasmerSIGSEGVPassthrough = false # must be false for release
WasmVMVersions = [
{ StartEpoch = 0, Version = "v1.2" },
{ StartEpoch = 1, Version = "v1.4" },
{ StartEpoch = 629, Version = "v1.5" },
]
TransferAndExecuteByUserAddresses = [ # TODO: set real contract addresses for all shards
"erd1qqqqqqqqqqqqqpgqr46jrxr6r2unaqh75ugd308dwx5vgnhwh47qtvepe3", #shard 0
]
[VirtualMachine.Querying]
NumConcurrentVMs = 1
TimeOutForSCExecutionInMilliseconds = 10000 # 10 seconds = 10000 milliseconds
WasmerSIGSEGVPassthrough = false # must be false for release
WasmVMVersions = [
{ StartEpoch = 0, Version = "v1.2" },
{ StartEpoch = 1, Version = "v1.4" },
{ StartEpoch = 629, Version = "v1.5" },
]
TransferAndExecuteByUserAddresses = [ # TODO: set real contract addresses for all shards
"erd1qqqqqqqqqqqqqpgqr46jrxr6r2unaqh75ugd308dwx5vgnhwh47qtvepe3",
]
[VirtualMachine.GasConfig]
# The following values define the maximum amount of gas to be allocated for VM Queries coming from API
# If set to 0, then MaxUInt64 will be used
ShardMaxGasPerVmQuery = 1500000000 #1.5b
MetaMaxGasPerVmQuery = 0 #unlimited
[BuiltInFunctions]
AutomaticCrawlerAddresses =[
"erd16045g8cwmu00wna38tth93gesumaqw2jszmqck3s9lj55msnycqq9cm6e7", #shard 0
"erd1yeny8f4jh8ecz54yere72lsqzwadntkcds2n2mhr7wu0vrrvpsqshrpgua", #shard 1
"erd1l5uuldfz6c0v0lruk3yegf6q3lj7f3cdmeflwg8wuvnx28xzhspqsc63wd", #shard 2
]
MaxNumAddressesInTransferRole = 100
DNSV2Addresses =[
"erd1qqqqqqqqqqqqqpgq73dzn6rmncfsr9054hjam3zc0th7w7ex8tksv9z97n"
]
[Hardfork]
EnableTrigger = true
EnableTriggerFromP2P = true
PublicKeyToListenFrom = "d6d32e28f2df244624eeaccf5e08f7a6c617a6c948e4a42e19c1b6f68ea0c77eba3ee10501e179f788455d7e77c3cf082bc9a7a4fa8f136a25497189a37d10bc6826cc3ed5da714f6c931bce5af271e5d558e3b8142ad1e367fd95a4c7f88c11"
CloseAfterExportInMinutes = 10000
AfterHardFork = false
ImportFolder = "export"
StartRound = 10000
StartNonce = 10000
StartEpoch = 100
GenesisTime = 0
ValidatorGracePeriodInEpochs = 1 #defines how long is the rating computation disabled after hardfork
[Hardfork.ExportStateStorageConfig]
[Hardfork.ExportStateStorageConfig.Cache]
Name = "HardFork.ExportStateStorageConfig"
Capacity = 5000
Type = "LRU"
[Hardfork.ExportStateStorageConfig.DB]
FilePath = "ExportStateStorage/MainDB"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 1000
MaxOpenFiles = 10
[Hardfork.ExportKeysStorageConfig]
[Hardfork.ExportKeysStorageConfig.Cache]
Name = "HardFork.ExportKeysStorageConfig"
Capacity = 5000
Type = "LRU"
[Hardfork.ExportKeysStorageConfig.DB]
FilePath = "ExportKeysStorageConfig/MainDB"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 1000
MaxOpenFiles = 10
[Hardfork.ExportTriesStorageConfig]
[Hardfork.ExportTriesStorageConfig.Cache]
Name = "HardFork.ExportTriesStorageConfig"
Capacity = 5000
Type = "LRU"
[Hardfork.ExportTriesStorageConfig.DB]
FilePath = "ExportTrieStorage/MainTrie"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 1000
MaxOpenFiles = 10
[Hardfork.ImportStateStorageConfig]
[Hardfork.ImportStateStorageConfig.Cache]
Name = "HardFork.ImportStateStorageConfig"
Capacity = 5000
Type = "LRU"
[Hardfork.ImportStateStorageConfig.DB]
FilePath = "ExportStateStorage/MainDB"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 1000
MaxOpenFiles = 10
[Hardfork.ImportKeysStorageConfig]
[Hardfork.ImportKeysStorageConfig.Cache]
Name = "HardFork.ImportKeysStorageConfig"
Capacity = 5000
Type = "LRU"
[Hardfork.ImportKeysStorageConfig.DB]
FilePath = "ExportKeysStorageConfig/MainDB"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 1000
MaxOpenFiles = 10
[Debug]
[Debug.InterceptorResolver]
Enabled = false
CacheSize = 10000
EnablePrint = false
IntervalAutoPrintInSeconds = 20
NumRequestsThreshold = 9
NumResolveFailureThreshold = 3
DebugLineExpiration = 10 #Will remove the debug line after a `DebugLineExpiration` number of prints
[Debug.Antiflood]
Enabled = true
CacheSize = 10000
IntervalAutoPrintInSeconds = 20
[Debug.ShuffleOut]
CallGCWhenShuffleOut = true
ExtraPrintsOnShuffleOut = true
DoProfileOnShuffleOut = true
[Debug.EpochStart]
GoRoutineAnalyserEnabled = false
ProcessDataTrieOnCommitEpoch = false
[Debug.Process]
Enabled = false
DebuggingLogLevel = "*:DEBUG,p2p:TRACE,debug:DEBUG,process:TRACE,intercept:TRACE"
GoRoutinesDump = true
PollingTimeInSeconds = 240 # 4 minutes
# setting this to 0 disables the automatic revert of the log level
RevertLogLevelTimeInSeconds = 600 # 10 minutes
[Health]
IntervalVerifyMemoryInSeconds = 30
IntervalDiagnoseComponentsInSeconds = 30
IntervalDiagnoseComponentsDeeplyInSeconds = 120
MemoryUsageToCreateProfiles = 3221225472 # 3 GB
NumMemoryUsageRecordsToKeep = 100
FolderPath = "health-records"
[SoftwareVersionConfig]
StableTagLocation = "https://api.github.com/repos/multiversx/mx-chain-devnet-config/releases/latest"
PollingIntervalInMinutes = 65
[GatewayMetricsConfig]
URL = "https://devnet-gateway.multiversx.com"
[LogsAndEvents]
SaveInStorageEnabled = false
[LogsAndEvents.TxLogsStorage.Cache]
Name = "TxLogsStorage"
Capacity = 1000
Type = "SizeLRU"
SizeInBytes = 20971520 #20MB
[LogsAndEvents.TxLogsStorage.DB]
FilePath = "Logs"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 100
MaxOpenFiles = 10
[DbLookupExtensions]
Enabled = false
DbLookupMaxActivePersisters = 10
[DbLookupExtensions.MiniblocksMetadataStorageConfig.Cache]
Name = "DbLookupExtensions.MiniblocksMetadataStorage"
Capacity = 20000
Type = "LRU"
[DbLookupExtensions.MiniblocksMetadataStorageConfig.DB]
FilePath = "DbLookupExtensions/MiniblocksMetadata"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 20000
MaxOpenFiles = 10
[DbLookupExtensions.MiniblockHashByTxHashStorageConfig.Cache]
Name = "DbLookupExtensions.MiniblockHashByTxHashStorage"
Capacity = 20000
Type = "LRU"
[DbLookupExtensions.MiniblockHashByTxHashStorageConfig.DB]
FilePath = "DbLookupExtensions_MiniblockHashByTxHash"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 20000
MaxOpenFiles = 10
[DbLookupExtensions.EpochByHashStorageConfig.Cache]
Name = "DbLookupExtensions.EpochByHashStorage"
Capacity = 20000
Type = "LRU"
[DbLookupExtensions.EpochByHashStorageConfig.DB]
FilePath = "DbLookupExtensions_EpochByHash"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 20000
MaxOpenFiles = 10
[DbLookupExtensions.ResultsHashesByTxHashStorageConfig.Cache]
Name = "DbLookupExtensions.ResultsHashesByTxHashStorage"
Capacity = 20000
Type = "LRU"
[DbLookupExtensions.ResultsHashesByTxHashStorageConfig.DB]
FilePath = "DbLookupExtensions_ResultsHashesByTx"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 20000
MaxOpenFiles = 10
[DbLookupExtensions.ESDTSuppliesStorageConfig.Cache]
Name = "DbLookupExtensions.ESDTSuppliesStorage"
Capacity = 20000
Type = "LRU"
[DbLookupExtensions.ESDTSuppliesStorageConfig.DB]
FilePath = "DbLookupExtensions_ESDTSupplies"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 20000
MaxOpenFiles = 10
[DbLookupExtensions.RoundHashStorageConfig.Cache]
Name = "DbLookupExtensions.RoundHashStorage"
Capacity = 20000
Type = "LRU"
[DbLookupExtensions.RoundHashStorageConfig.DB]
FilePath = "DbLookupExtensions_RoundHash"
Type = "LvlDBSerial"
BatchDelaySeconds = 2
MaxBatchSize = 20000
MaxOpenFiles = 10
[Logs]
LogFileLifeSpanInMB = 1024 # 1GB
LogFileLifeSpanInSec = 86400 # 1 day
[TrieSync]
NumConcurrentTrieSyncers = 200
MaxHardCapForMissingNodes = 5000
#available versions: 1, 2 and 3. 1 is the initial version, 2 is updated, more efficient version employing 2 lists
#the 3-rd one uses depth-first algorithm which keeps the memory consumption low
TrieSyncerVersion = 3
CheckNodesOnDisk = false
[Requesters]
NumCrossShardPeers = 2
NumTotalPeers = 3 # NumCrossShardPeers + num intra shard
NumFullHistoryPeers = 3
[HeartbeatV2]
PeerAuthenticationTimeBetweenSendsInSec = 7200 # 2h
PeerAuthenticationTimeBetweenSendsWhenErrorInSec = 60 # 1min
PeerAuthenticationTimeThresholdBetweenSends = 0.1 # 10% # max random threshold between messages, representing a percent of PeerAuthenticationTimeBetweenSendsInSec
HeartbeatTimeBetweenSendsInSec = 300 # 5min
HeartbeatTimeBetweenSendsDuringBootstrapInSec = 60 # 1min
HeartbeatTimeBetweenSendsWhenErrorInSec = 60 # 1min
HeartbeatTimeThresholdBetweenSends = 0.1 # 10% # max random threshold between messages, representing a percent of HeartbeatTimeBetweenSendsInSec
HeartbeatExpiryTimespanInSec = 9000 # 2h30min (larger than PeerAuthenticationTimeBetweenSendsInSec)
MinPeersThreshold = 0.8 # 80% # min threshold of peers to consider enough peer auths received
DelayBetweenPeerAuthenticationRequestsInSec = 5 # 5sec # delay between requests
PeerAuthenticationMaxTimeoutForRequestsInSec = 7200 # 2h # max timeout allowed to receive peer auth messages from peers
PeerShardTimeBetweenSendsInSec = 1800 # 30min
PeerShardTimeThresholdBetweenSends = 0.1 # 10% # max random threshold between messages, representing a percent of PeerShardTimeBetweenSendsInSec
MaxMissingKeysInRequest = 500 # max number of missing keys allowed in a request
MaxDurationPeerUnresponsiveInSec = 900 # 15min # max duration after which a peer is considered inactive
HideInactiveValidatorIntervalInSec = 3600 # 1h # time that an inactive validator is returned through api
HardforkTimeBetweenSendsInSec = 60 # 1min # time between hardfork messages
TimeBetweenConnectionsMetricsUpdateInSec = 30 # 30sec # time between consecutive connections metrics updates
TimeToReadDirectConnectionsInSec = 15 # 15sec # time between consecutive peer shard mapper updates with direct connections
PeerAuthenticationTimeBetweenChecksInSec = 6 # 6sec
[HeartbeatV2.HeartbeatPool]
Name = "HeartbeatPool"
Capacity = 50000
Type = "SizeLRU"
SizeInBytes = 314572800 #300MB
[Redundancy]
# MaxRoundsOfInactivityAccepted defines the number of rounds missed by a main or higher level backup machine before
# the current machine will take over and propose/sign blocks. Used in both single-key and multi-key modes.
MaxRoundsOfInactivityAccepted = 3