Zilliqa / zq2

Zilliqa 2.0 code base
Apache License 2.0
9 stars 0 forks source link

Move consensus configuration into config.toml #966

Closed JamesHinshelwood closed 5 months ago

JamesHinshelwood commented 5 months ago

Move these into cfg.rs (and more if you can find them):

https://github.com/Zilliqa/zq2/blob/39bb4d169ab82abbdce73ba6f251b357398378a5/zilliqa/src/consensus.rs#L660-L661 https://github.com/Zilliqa/zq2/blob/39bb4d169ab82abbdce73ba6f251b357398378a5/zilliqa/src/consensus.rs#L662-L663 https://github.com/Zilliqa/zq2/blob/39bb4d169ab82abbdce73ba6f251b357398378a5/zilliqa/src/contracts/deposit.sol#L18

DrZoltanFazekas commented 5 months ago

Use the following values in config.toml: rewards_per_hour = 51_000_000_000_000_000_000_000 blocks_per_hour = 3_600 minimumStake = 10_000_000_000_000_000_000_000_000

JamesHinshelwood commented 5 months ago

Maybe lets move the block gas limit and gas price into config too while we're here.

JamesHinshelwood commented 5 months ago

Closed by #984