Created
February 5, 2021 16:33
-
-
Save Fraser999/577ef0e99ac568283060fe88feaf87a6 to your computer and use it in GitHub Desktop.
Diff between chainspec <= 0.7.3 and later
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1c1,9 | |
< [genesis] | |
--- | |
> [protocol] | |
> # Protocol version. | |
> version = '1.0.0' | |
> | |
> [protocol.activation_point] | |
> # This protocol version becomes active at the start of this era. | |
> era_id = 0 | |
> | |
> [network] | |
11,14c19,25 | |
< # Protocol version at genesis. | |
< protocol_version = '1.0.0' | |
< # Path (absolute, or relative to this chainspec.toml) to the CSV file containing initial account balances and bonds. | |
< accounts_path = '/etc/casper/accounts.csv' | |
--- | |
> | |
> [core] | |
> # Era duration. | |
> era_duration = '30minutes' | |
> # Minimum number of blocks per era. An era will take longer than `era_duration` if that is necessary to reach the | |
> # minimum height. | |
> minimum_era_height = 10 | |
17c28,29 | |
< # Amount of auction delay | |
--- | |
> # Number of eras before an auction actually defines the set of validators. If you bond with a sufficient bid in era N, | |
> # you will be a validator in era N + auction_delay + 1. | |
19,20c31,32 | |
< # Number of milliseconds after genesis that a genesis validator's bid is locked | |
< locked_funds_period_millis = 7776000000 | |
--- | |
> # The period after genesis during which a genesis validator's bid is locked. | |
> locked_funds_period = '90days' | |
33,37d44 | |
< # Era duration. | |
< era_duration = '30minutes' | |
< # Minimum number of blocks per era. An era will take longer than `era_duration` if that is necessary to reach the | |
< # minimum height. | |
< minimum_era_height = 10 | |
39,41c46,48 | |
< # It is the fraction of validators that would need to equivocate to make two honest nodes see two conflicting | |
< # blocks as finalized: A higher value F makes it safer to rely on finalized blocks. It also makes it more difficult to | |
< # finalize blocks, however, and requires strictly more than (F + 1)/2 validators to be working correctly. | |
--- | |
> # It is the fraction of validators that would need to equivocate to make two honest nodes see two conflicting blocks as | |
> # finalized: A higher value F makes it safer to rely on finalized blocks. It also makes it more difficult to finalize | |
> # blocks, however, and requires strictly more than (F + 1)/2 validators to be working correctly. | |
43,44c50,51 | |
< # Integer between 0 and 255. The power of two that is the number of milliseconds in the minimum round length, and | |
< # therefore the minimum delay between a block and its child. E.g. 14 means 2^14 milliseconds, i.e. about 16 seconds. | |
--- | |
> # Integer between 0 and 255. The power of two that is the number of milliseconds in the minimum round length, and | |
> # therefore the minimum delay between a block and its child. E.g. 14 means 2^14 milliseconds, i.e. about 16 seconds. | |
46,47c53,54 | |
< # Integer between 0 and 255. Must be greater than `minimum_round_exponent`. The power of two that is the number of | |
< # milliseconds in the minimum round length, and therefore the minimum delay between a block and its child. E.g. 19 | |
--- | |
> # Integer between 0 and 255. Must be greater than `minimum_round_exponent`. The power of two that is the number of | |
> # milliseconds in the maximum round length, and therefore the maximum delay between a block and its child. E.g. 19 | |
70c77 | |
< [wasm_config] | |
--- | |
> [wasm] | |
76c83 | |
< [wasm_config.storage_costs] | |
--- | |
> [wasm.storage_costs] | |
80c87 | |
< [wasm_config.opcode_costs] | |
--- | |
> [wasm.opcode_costs] | |
111c118 | |
< # Grow memory cost, per page (64kb) | |
--- | |
> # Grow memory cost, per page (64kb). | |
117c124 | |
< [wasm_config.host_function_costs] | |
--- | |
> [wasm.host_function_costs] | |
161,162c168 | |
< [system_config] | |
< # Wasmless transfer cost expressed in gas. | |
--- | |
> [system_costs] | |
165c171 | |
< [system_config.auction_costs] | |
--- | |
> [system_costs.auction_costs] | |
179,180c185 | |
< | |
< [system_config.mint_costs] | |
--- | |
> [system_costs.mint_costs] | |
188c193 | |
< [system_config.proof_of_stake_costs] | |
--- | |
> [system_costs.proof_of_stake_costs] | |
194c199 | |
< [system_config.standard_payment_costs] | |
--- | |
> [system_costs.standard_payment_costs] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary: