Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit c69ba4e

Browse files
committed
[DEVOPS-398] configuration.yaml: rearrange testnet sections
- mainnet_base - in the genesis spec protocolMagic requiresNetworkMagic is omitted and therefore gets the default setting NMMustBeJust. - mainnet_full - genesis data remains the same. - testnet_launch - do not inherit protocolConstants from mainnet_base_spec. Copy across these parameters. In this genesis spec, requiresNetworkMagic is explicitly stated as NMMustBeJust, even though that would be the default value. - testnet_full - new genesis data will be generated from testnet_launch and updated after starting the blockchain. - devnet, other "leaf configurations" have requiresNetworkMagic: NMMustBeNothing which overrides the mainnet_base setting. This is so that the address format of the devnets matches mainnet_full. For testnet, the YAML "inheritance" direction is now: mainnet_base -> testnet_launch -> testnet_full This ensures that testnet_full gets all the genesis spec attributes -- requiresNetworkMagic in particular.
1 parent ab3f412 commit c69ba4e

File tree

1 file changed

+40
-31
lines changed

1 file changed

+40
-31
lines changed

lib/configuration.yaml

Lines changed: 40 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ dev: &dev
5757
ftsSeed: "c2tvdm9yb2RhIEdndXJkYSBib3JvZGEgcHJvdm9kYSA="
5858
heavyDelegation: {}
5959
avvmDistr: {}
60-
60+
requiresNetworkMagic: NMMustBeNothing
6161
dbSerializeVersion: 0
6262

6363
ntp: &dev_ntp
@@ -14775,7 +14775,6 @@ mainnet_full: &mainnet_full
1477514775
src:
1477614776
file: mainnet-genesis.json
1477714777
hash: 5f20df933584822601f9e3f8c024eb5eb252fe8cefb24d1317dc3d432e940ebb
14778-
1477914778
requiresNetworkMagic: NMMustBeNothing
1478014779

1478114780
mainnet_wallet_win64: &mainnet_wallet_win64
@@ -14815,11 +14814,47 @@ mainnet_wallet_linux64: &mainnet_wallet_linux64
1481514814
## ##
1481614815
##############################################################################
1481714816

14818-
testnet_full: &testnet_full
14817+
# Should be used to generate genesis
14818+
testnet_launch: &testnet_launch
1481914819
<<: *mainnet_base
14820-
core: &testnet_full_core
14820+
core: &testnet_gen_core
1482114821
<<: *mainnet_base_core
14822+
genesis: &testnet_gen_genesis
14823+
<<: *mainnet_base_genesis
14824+
spec: &testnet_gen_spec
14825+
<<: *mainnet_base_spec
14826+
protocolConstants:
14827+
k: 2160
14828+
protocolMagic: 1097911063
14829+
vssMinTTL: 2
14830+
vssMaxTTL: 6
14831+
avvmDistr: {}
14832+
initializer:
14833+
testBalance:
14834+
poors: 100
14835+
richmen: 7
14836+
richmenShare: 0.95
14837+
totalBalance: 42000000000000000 # 42e9 ADA
14838+
useHDAddresses: True
14839+
fakeAvvmBalance:
14840+
count: 100
14841+
oneBalance: 20000000000000 # 2e7 ADA
14842+
avvmBalanceFactor: 1
14843+
useHeavyDlg: True
14844+
seed: 0 # should be overridden using --configuration-seed
14845+
blockVersionData:
14846+
<<: *mainnet_base_blockVersionData
14847+
maxHeaderSize: 2000
14848+
maxProposalSize: 70000 # 70KB
14849+
maxTxSize: 65536 # 64KiB
14850+
requiresNetworkMagic: NMMustBeJust
14851+
14852+
testnet_full: &testnet_full
14853+
<<: *testnet_launch
14854+
core: &testnet_full_core
14855+
<<: *testnet_gen_core
1482214856
genesis:
14857+
<<: *testnet_gen_genesis
1482314858
src:
1482414859
file: testnet-genesis.json
1482514860
hash: f0204568043f6cb8068a81ddc1e9ca575615aed12a3a815678afc5ca12a94eb8
@@ -14860,32 +14895,6 @@ testnet_wallet_linux64: &testnet_wallet_linux64
1486014895
<<: *testnet_wallet_update
1486114896
systemTag: linux
1486214897

14863-
# Should be used to generate genesis
14864-
testnet_launch: &testnet_launch
14865-
<<: *testnet_full
14866-
core: &testnet_gen_core
14867-
<<: *testnet_full_core
14868-
genesis:
14869-
<<: *mainnet_base_genesis
14870-
spec:
14871-
<<: *mainnet_base_spec
14872-
protocolConstants:
14873-
<<: *mainnet_base_protocolConstants
14874-
protocolMagic: 1097911063
14875-
avvmDistr: *mainnet_avvmDistr
14876-
initializer:
14877-
testBalance:
14878-
poors: 100
14879-
richmen: 7
14880-
richmenShare: 0.93
14881-
totalBalance: 13887504355000000
14882-
useHDAddresses: True
14883-
fakeAvvmBalance:
14884-
count: 100
14885-
oneBalance: 1000000000000 # 1e6 ADA
14886-
avvmBalanceFactor: 0.1
14887-
useHeavyDlg: True
14888-
seed: 0 # should be overridden using --configuration-seed
1488914898

1489014899
##############################################################################
1489114900
## ##
@@ -14901,7 +14910,6 @@ mainnet_dryrun_full: &mainnet_dryrun_full
1490114910
src:
1490214911
file: mainnet-genesis-dryrun-with-stakeholders.json
1490314912
hash: c6a004d3d178f600cd8caa10abbebe1549bef878f0665aea2903472d5abf7323
14904-
1490514913
requiresNetworkMagic: NMMustBeNothing
1490614914

1490714915
mainnet_dryrun_wallet_win64: &mainnet_dryrun_wallet_win64
@@ -15026,6 +15034,7 @@ devnet: &devnet
1502615034
avvmBalanceFactor: 1
1502715035
useHeavyDlg: True
1502815036
seed: 0
15037+
requiresNetworkMagic: NMMustBeNothing
1502915038

1503015039
update: &devnet_update
1503115040
applicationName: cardano-sl

0 commit comments

Comments
 (0)