forked from multiversx/mx-chain-mainnet-config
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathp2p.toml
75 lines (64 loc) · 4.13 KB
/
p2p.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
#P2P config file
#NodeConfig holds the P2P settings
[Node]
#Port is the port that will be opened by the node on all interfaces so other peers can connect to it
#If the port = 0, the node will search for a free port on the machine and use it
Port = "37373-38383"
#Seed represents the seed string generator for p2p identity (used during authentication and message passing).
#An empty Seed value will mean that the identity will be generated randomly in a secure cryptographically manner.
#The seed provided in this string can be of any length.
#########################################################################################
# WARNING! FOR SECURITY REASONS, ONE MIGHT USE A GENERATED STRING AS LONG AS POSSIBLE! #
# IT IS RECOMMENDED THAT THE SEED FIELD SHOULD REMAIN EMPTY (NO CHARACTERS BETWEEN "") #
# THIS SEED WILL BE USED FOR P2P'S PRIVATE KEY GENERATION. SAME SEED USED WILL LEAD TO #
# THE GENERATION OF THE SAME P2P IDENTITY. #
# SPECIFY A SEED VALUE IF YOU KNOW WHAT YOU ARE DOING! #
#########################################################################################
#The seed provided will be hashed using SHA256 and the resulting 32 byte length byte array will be used in
#p2p identity generation
Seed = ""
# P2P peer discovery section
#The following sections correspond to the way new peers will be discovered
#If all config types are disabled then the peer will run in single mode (will not try to find other peers)
#If more than one peer discovery mechanism is enabled, the application will output an error and will not start
[KadDhtPeerDiscovery]
#Enabled: true/false to enable/disable this discovery mechanism
Enabled = true
#RefreshIntervalInSec represents the time in seconds between querying for new peers
RefreshIntervalInSec = 10
#ProtocolID represents the protocol that this node will advertize to other peers
#To connect to other nodes, those nodes should have the same ProtocolID string
ProtocolID = "/erd/kad/1.1.0"
#InitialPeerList represents the list of strings of some known nodes that will bootstrap this node
#The address will be in a self-describing addressing format.
#More can be found here: https://github.com/libp2p/specs/blob/master/3-requirements.md#34-transport-agnostic
#Example:
# /ip6/fe80::8823:6dff:fee7:f172/tcp/4001/p2p/QmYJyUMAcXEw1b5bFfbBbzYu5wyyjLMRHXGUkCXpag74Fu
# /ip4/162.246.145.218/udp/4001/utp/ipfs/QmYJyUMAcXEw1b5bFfbBbzYu5wyyjLMRHXGUkCXpag74Fu
# /ether/ac:fd:ec:0b:7c:fe/ipfs/QmYJyUMAcXEw1b5bFfbBbzYu5wyyjLMRHXGUkCXpag74Fu
#
#If the initial peers list is left empty, the node will not try to connect to other peers during initial bootstrap
#phase but will accept connections and will do the network discovery if another peer connects to it
InitialPeerList = [
"/dns4/gondor.mainnet.elrond.com/tcp/10000/p2p/16Uiu2HAmQihd2Di6JrDCRf6bnxXEmgfFy8C3S7WDnq7WNXscfkrG",
"/dns4/isengard.mainnet.elrond.com/tcp/10000/p2p/16Uiu2HAkxWoEwkkxMfUgi2CkxjWkZ7cccjvh4V57gxUQQC6c45N6",
"/ip4/188.166.192.50/tcp/10000/p2p/16Uiu2HAmT2rqgzWYnFe7YL4poyjXvKhGtrwkhaAibSDFCjGATDZ7",
"/ip4/188.166.203.198/tcp/10000/p2p/16Uiu2HAmJeuEEczm6kLyBKAJQobVn7ARmGFQ5mPrbNVsjdhJz9s1",
]
#kademlia's routing table bucket size
BucketSize = 100
#RoutingTableRefreshIntervalInSec defines how many seconds should pass between 2 kad routing table auto refresh calls
RoutingTableRefreshIntervalInSec = 300
[Sharding]
# The targeted number of peer connections
TargetPeerCount = 48
MaxIntraShardValidators = 25
MaxCrossShardValidators = 8
MaxIntraShardObservers = 7
MaxCrossShardObservers = 3
#available options:
# `ListsSharder` will split the peers based on the shard membership (intra, cross or unknown)
# `OneListSharder` will do just the connection triming (upto TargetPeerCount value) not taking into account
# the shard membership of the connected peers
# `NilListSharder` will disable conection trimming (sharder is off)
Type = "ListsSharder"