Skip to content

Commit 057f84c

Browse files
author
Nicolás Tallar
authored
[Chore] Update testnet internal configs (#801)
1 parent aaf3c85 commit 057f84c

9 files changed

+220
-47
lines changed

src/main/resources/application.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,9 @@ mantis {
293293

294294
test {include "chains/test-chain.conf"}
295295

296-
testnet-internal {include "chains/testnet-internal-chain.conf"}
296+
testnet-internal-nomad {include "chains/testnet-internal-nomad-chain.conf"}
297+
298+
testnet-internal-gac {include "chains/testnet-internal-gac-chain.conf"}
297299
}
298300

299301
sync {

src/main/resources/chains/testnet-internal-chain.conf renamed to src/main/resources/chains/testnet-internal-gac-chain.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108

109109
# Custom genesis JSON file path
110110
# null value indicates using default genesis definition that matches the main network
111-
custom-genesis-file = "chains/testnet-internal-genesis.json"
111+
custom-genesis-file = "chains/testnet-internal-gac-genesis.json"
112112

113113
# Monetary policy parameters
114114
# Doc: https://github.com/ethereumproject/ECIPs/blob/master/ECIPs/ECIP-1017.md

src/main/resources/chains/testnet-internal-genesis.json renamed to src/main/resources/chains/testnet-internal-gac-genesis.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"coinbase": "0x0000000000000000000000000000000000000000",
1111
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
1212
"alloc": {
13-
"d7a681378321f472adffb9fdded2712f677e0ba9": {"balance":
13+
"45238430908a621cfe0e5491528dedfe82058b8e": {"balance":
1414
"1606938044258990275541962092341162602522202993782792835301376"}
1515
}
1616
}
Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
{
2+
# Ethereum network identifier:
3+
# 1 - mainnet, 3 - ropsten, 7 - mordor
4+
network-id = 42
5+
6+
# Possibility to set Proof of Work target time for testing purposes.
7+
# null means that the standard difficulty calculation rules are used
8+
pow-target-time = 30 seconds
9+
10+
# Frontier block number
11+
frontier-block-number = "0"
12+
13+
# Homestead fork block number
14+
# Doc: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2.md
15+
homestead-block-number = "0"
16+
17+
# EIP-106 fork block number
18+
# Doc: https://github.com/ethereum/EIPs/issues/106
19+
eip106-block-number = "1000000000000000000"
20+
21+
# EIP-150 fork block number
22+
# Doc: https://github.com/ethereum/EIPs/issues/150
23+
eip150-block-number = "0"
24+
25+
# EIP-155 fork block number
26+
# Doc: https://github.com/ethereum/eips/issues/155
27+
# 3 000 000 following lead of existing clients implementation to maintain compatibility
28+
# https://github.com/paritytech/parity/blob/b50fb71dd1d29dfde2a6c7e1830447cf30896c31/ethcore/res/ethereum/classic.json#L15
29+
eip155-block-number = "0"
30+
31+
# EIP-160 fork block number
32+
# Doc: https://github.com/ethereum/EIPs/issues/160
33+
eip160-block-number = "0"
34+
35+
# EIP-161 fork block number (ETH Only)
36+
# Doc: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-161.md
37+
eip161-block-number = "1000000000000000000"
38+
39+
# EIP-170 max code size (Enabled from Atlantis fork block number)
40+
# Doc: https://github.com/ethereum/EIPs/issues/170
41+
# null value indicates there's no max code size for the contract code
42+
# TODO improve this configuration format as currently it is not obvious that this is enabled only from some block number
43+
max-code-size = "24576"
44+
45+
# Difficulty bomb pause block number
46+
# Doc: https://github.com/ethereumproject/ECIPs/blob/master/ECIPs/ECIP-1010.md
47+
difficulty-bomb-pause-block-number = "0"
48+
49+
# Difficulty bomb continuation block number
50+
# Doc: https://github.com/ethereumproject/ECIPs/blob/master/ECIPs/ECIP-1010.md
51+
difficulty-bomb-continue-block-number = "0"
52+
53+
# Difficulty bomb defusion block number
54+
# Doc: https://github.com/ethereumproject/ECIPs/blob/master/ECIPs/ECIP-1041.md
55+
difficulty-bomb-removal-block-number = "0"
56+
57+
# Byzantium fork block number (ETH only)
58+
# https://github.com/ethereum/EIPs/blob/master/EIPS/eip-609.md
59+
byzantium-block-number = "1000000000000000000"
60+
61+
# Atlantis fork block number (ETC only)
62+
# https://ecips.ethereumclassic.org/ECIPs/ecip-1054
63+
atlantis-block-number = "0"
64+
65+
# Agharta fork block number (ETC only)
66+
# https://ecips.ethereumclassic.org/ECIPs/ecip-1056
67+
agharta-block-number = "0"
68+
69+
# Phoenix fork block number (ETC only)
70+
# https://ecips.ethereumclassic.org/ECIPs/ecip-1088
71+
phoenix-block-number = "0"
72+
73+
# Constantinople fork block number (ETH only)
74+
# https://github.com/ethereum/pm/issues/53
75+
constantinople-block-number = "1000000000000000000"
76+
77+
# Petersburg fork block number (ETH only)
78+
# https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1716.md
79+
petersburg-block-number = "1000000000000000000"
80+
81+
# Istanbul fork block number (ETH only)
82+
# https://eips.ethereum.org/EIPS/eip-1679
83+
istanbul-block-number = "1000000000000000000"
84+
85+
# Proto-treasury fork block number (ETC only, but deactivated for now)
86+
# https://ecips.ethereumclassic.org/ECIPs/ecip-1098
87+
treasury-address = "0011223344556677889900112233445566778899"
88+
ecip1098-block-number = "1000000000000000000"
89+
90+
# Checkpointing fork block number
91+
# https://ecips.ethereumclassic.org/ECIPs/ecip-1097
92+
# Has to be equal or greater than ecip1098-block-number
93+
ecip1097-block-number = "1000000000000000000"
94+
95+
# Epoch calibration block number
96+
# https://ecips.ethereumclassic.org/ECIPs/ecip-1099
97+
ecip1099-block-number = "1000000000000000000"
98+
99+
# DAO fork configuration (Ethereum HF/Classic split)
100+
# https://blog.ethereum.org/2016/07/20/hard-fork-completed/
101+
dao = null
102+
103+
# Starting nonce of an empty account. Some networks (like Morden) use different values.
104+
account-start-nonce = "0"
105+
106+
# The ID of the accepted chain
107+
chain-id = "0x2A"
108+
109+
# Custom genesis JSON file path
110+
# null value indicates using default genesis definition that matches the main network
111+
custom-genesis-file = "chains/testnet-internal-nomad-genesis.json"
112+
113+
# Monetary policy parameters
114+
# Doc: https://github.com/ethereumproject/ECIPs/blob/master/ECIPs/ECIP-1017.md
115+
monetary-policy {
116+
# Block reward in the first era
117+
first-era-block-reward = "5000000000000000000"
118+
119+
# Reduced block reward after Byzantium fork
120+
first-era-reduced-block-reward = "3000000000000000000"
121+
122+
# Reduced block reward after Constantinople fork
123+
first-era-constantinople-reduced-block-reward = "2000000000000000000"
124+
125+
# Monetary policy era duration in number of blocks
126+
era-duration = 5000000
127+
128+
# Rate at which rewards get reduced in successive eras.
129+
# Value in range [0.0, 1.0]
130+
reward-reduction-rate = 0.2
131+
}
132+
133+
# if 2 competing blocktree branches are equal in terms of total difficulty and this is set to true, then gas
134+
# consumed in those branches will be used to resolve the tie
135+
# this is currently only used in ETS blockchain tests
136+
gas-tie-breaker = false
137+
138+
# if true, account storage will use Ethereum-specific format for storing keys/value in MPT (32 byte)
139+
# if false, generic storage for arbitrary length integers will be used
140+
eth-compatible-storage = true
141+
142+
# Set of initial nodes
143+
bootstrap-nodes = [
144+
"enode://ff86741b7b35087b2b53f44a612b233336490d5fae10b1434619b7714fe2d5346c71427a5e126cd27b9422a4d4376c1534ef66e88c5e62d6441d2541f63de0cf@mantis-4.mantis.ws:9004",
145+
"enode://f92aa66337ab1993cc7269d4295d296aefe6199b34e900eac08c514c947ec7340d46a5648ffc2da10325dbaba16bdf92aa9c0b5e51d97a7818c3f495d478ddad@mantis-1.mantis.ws:9001",
146+
"enode://442e2bd50eece65f90dee0d5c6075da4e1b4bc62e36b261a52e7f393dae6a68241e4dbad868c7ecc14fed277ed72e99a289a811b6172f35fb18bdca0b7a5602c@mantis-3.mantis.ws:9003",
147+
"enode://af97643f364b805d5b0e32b5356578a16afcc4fb9d1b6622998e9441eeb7795e8daf8e6b0ff3330da9879034112be56954f9269164513ece0f7394b805be3633@mantis-5.mantis.ws:9005",
148+
"enode://d8a010f019db37dcaf2e1fb98d4fcbf1f57dbd7e2a7f065e92fbe77dca8b9120d6e79f1617e98fa6134e6af8858ac8f3735b1e70a5708eb14f228080356eb0a7@mantis-2.mantis.ws:9002"
149+
]
150+
151+
# List of hex encoded public keys of Checkpoint Authorities
152+
checkpoint-public-keys = []
153+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"extraData": "0x00",
3+
"nonce": "0x0000000000000042",
4+
"gasLimit": "0x2fefd8",
5+
"_commentAboutDifficulty": "Set to 1000000",
6+
"difficulty": "0xF4240",
7+
"ommersHash": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
8+
"_commentAboutTimestamp": "Set to 11/05/2020 @ 12:00am (UTC)",
9+
"timestamp": "0x5FA34080",
10+
"coinbase": "0x0000000000000000000000000000000000000000",
11+
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
12+
"alloc": {
13+
"075b073eaa848fc14de2fd9c2a18d97a4783d84c": {
14+
"balance": "1606938044258990275541962092341162602522202993782792835301376"
15+
},
16+
"18f496690eb3fabb794a653be8097af5331c07b1": {
17+
"balance": "1606938044258990275541962092341162602522202993782792835301376"
18+
},
19+
"1ff7fc39f7f4dc79c5867b9514d0e42607741384": {
20+
"balance": "1606938044258990275541962092341162602522202993782792835301376"
21+
},
22+
"2a0a5393adef8f8df2aa948c01c0500dfd786c83": {
23+
"balance": "1606938044258990275541962092341162602522202993782792835301376"
24+
},
25+
"2ce0782496a68b614e53a0428e5a18fc3ca2f139": {
26+
"balance": "1606938044258990275541962092341162602522202993782792835301376"
27+
},
28+
"421c8cd4f16ac4b36b9c125bc4a8cac1fbcb403e": {
29+
"balance": "1606938044258990275541962092341162602522202993782792835301376"
30+
},
31+
"75b0f1c605223de2a013bf7f26d4cd93c63a5eb8": {
32+
"balance": "1606938044258990275541962092341162602522202993782792835301376"
33+
},
34+
"7e3166074d45c3311908315da1af5f5a965b7ece": {
35+
"balance": "1606938044258990275541962092341162602522202993782792835301376"
36+
},
37+
"8716c138878d158470dbc15727854375f5cb7ef5": {
38+
"balance": "1606938044258990275541962092341162602522202993782792835301376"
39+
},
40+
"886b335e37ee91aa5ce8daca7c65bfbaa3fe41d2": {
41+
"balance": "1606938044258990275541962092341162602522202993782792835301376"
42+
}
43+
}
44+
}

src/universal/conf/testnet-internal.conf renamed to src/universal/conf/base-testnet.conf

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
include "app.conf"
22

3+
# Configurations required for setting up a testnet of only Mantis clients
34
mantis {
45
sync {
5-
# Fast sync is disabled as it's an experimental feature for now
6+
# Fast sync is disabled, requires coordination to see if it affects our deployments if we turn this on
67
do-fast-sync = false
78

89
# All testnet members are assumed to be honest so blacklisting is turned off
@@ -14,10 +15,6 @@ mantis {
1415
mode = "archive"
1516
}
1617

17-
blockchains {
18-
network = "testnet-internal"
19-
}
20-
2118
consensus {
2219
coinbase = "0011223344556677889900112233445566778899" # has to be changed for each node
2320
mining-enabled = true

src/universal/conf/consensus.conf

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
include "base-testnet.conf"
2+
3+
mantis {
4+
blockchains {
5+
network = "testnet-internal-gac"
6+
}
7+
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
include "base-testnet.conf"
2+
3+
mantis {
4+
blockchains {
5+
network = "testnet-internal-nomad"
6+
}
7+
8+
}

0 commit comments

Comments
 (0)