-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathconfig_default.py
More file actions
69 lines (63 loc) · 2.33 KB
/
config_default.py
File metadata and controls
69 lines (63 loc) · 2.33 KB
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
from pathlib import Path
from multiversx_sdk_cli.localnet.config_general import General
from multiversx_sdk_cli.localnet.config_networking import Networking
from multiversx_sdk_cli.localnet.config_sharding import Metashard, RegularShards
from multiversx_sdk_cli.localnet.config_software import (
Software,
SoftwareChainGo,
SoftwareChainProxyGo,
SoftwareResolution,
)
general = General(
log_level="*:DEBUG",
genesis_delay_seconds=10,
rounds_per_epoch=100,
round_duration_milliseconds=6000,
# For the purpose of the localnet, we'll have 3x for Supernova (by default).
rounds_per_epoch_in_supernova=300,
round_duration_milliseconds_in_supernova=2000,
)
software = Software(
mx_chain_go=SoftwareChainGo(
resolution=SoftwareResolution.Remote,
archive_url="https://github.com/multiversx/mx-chain-go/archive/refs/heads/master.zip",
archive_download_folder=Path("~/multiversx-sdk") / "localnet_software_remote" / "downloaded" / "mx-chain-go",
archive_extraction_folder=Path("~/multiversx-sdk") / "localnet_software_remote" / "extracted" / "mx-chain-go",
local_path=Path("~/multiversx-sdk") / "localnet_software_local" / "mx-chain-go",
),
mx_chain_proxy_go=SoftwareChainProxyGo(
resolution=SoftwareResolution.Remote,
archive_url="https://github.com/multiversx/mx-chain-proxy-go/archive/refs/heads/master.zip",
archive_download_folder=Path("~/multiversx-sdk")
/ "localnet_software_remote"
/ "downloaded"
/ "mx-chain-proxy-go",
archive_extraction_folder=Path("~/multiversx-sdk")
/ "localnet_software_remote"
/ "extracted"
/ "mx-chain-proxy-go",
local_path=Path("~/multiversx-sdk") / "localnet_software_local" / "mx-chain-proxy-go",
),
)
metashard = Metashard(
consensus_size=1,
num_observers=0,
num_validators=1,
)
shards = RegularShards(
num_shards=2,
consensus_size=1,
num_observers_per_shard=0,
num_validators_per_shard=1,
)
networking = Networking(
host="127.0.0.1",
port_seednode=9999,
port_seednode_rest_api=10000,
p2p_id_seednode="16Uiu2HAkx4QqgXXDdHdUWbLu5kxhd3Uo2hqB2FfCxmxH5Sd7bZFk",
port_proxy=7950,
port_first_observer=21100,
port_first_observer_rest_api=10100,
port_first_validator=21500,
port_first_validator_rest_api=10200,
)