This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,6 +96,18 @@ pub struct EthashParams { | |
pub ecip1010_continue_transition: u64, | ||
/// Total block number for one ECIP-1017 era. | ||
pub ecip1017_era_rounds: u64, | ||
/// Number of first block where MCIP-3 begins. | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
5chdn
Author
Contributor
|
||
pub mcip3_transition: u64, | ||
/// MCIP-3 Block reward coin-base for miners. | ||
pub mcip3_miner_reward: u64, | ||
/// MCIP-3 Block reward ubi-base for basic income. | ||
pub mcip3_ubi_reward: u64, | ||
/// MCIP-3 contract address for universal basic income. | ||
pub mcip3_ubi_contract: Address, | ||
/// MCIP-3 Block reward dev-base for dev funds. | ||
pub mcip3_dev_reward: u64, | ||
/// MCIP-3 contract address for the developer funds. | ||
pub mcip3_dev_contract: Address, | ||
This comment has been minimized.
Sorry, something went wrong.
rphmeier
Contributor
|
||
/// Maximum amount of code that can be deploying into a contract. | ||
pub max_code_size: u64, | ||
/// Number of first block where the max gas limit becomes effective. | ||
|
@@ -137,6 +149,12 @@ impl From<ethjson::spec::EthashParams> for EthashParams { | |
ecip1010_pause_transition: p.ecip1010_pause_transition.map_or(u64::max_value(), Into::into), | ||
ecip1010_continue_transition: p.ecip1010_continue_transition.map_or(u64::max_value(), Into::into), | ||
ecip1017_era_rounds: p.ecip1017_era_rounds.map_or(u64::max_value(), Into::into), | ||
mcip3_transition: p.mcip3_transition.map_or(u64::max_value(), Into::into), | ||
mcip3_miner_reward: p.mcip3_miner_reward.map_or(u64::max_value(), Into::into), | ||
mcip3_ubi_reward: p.mcip3_ubi_reward.map_or(u64::max_value(), Into::into), | ||
mcip3_ubi_contract: p.mcip3_ubi_contract.map_or_else(Address::new, Into::into), | ||
mcip3_dev_reward: p.mcip3_dev_reward.map_or(u64::max_value(), Into::into), | ||
mcip3_dev_contract: p.mcip3_dev_contract.map_or_else(Address::new, Into::into), | ||
max_code_size: p.max_code_size.map_or(u64::max_value(), Into::into), | ||
max_gas_limit_transition: p.max_gas_limit_transition.map_or(u64::max_value(), Into::into), | ||
max_gas_limit: p.max_gas_limit.map_or(U256::max_value(), Into::into), | ||
|
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
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
should we have a boolean here to tell if it's musicoin chain? As the following function on _close_block will need to switch case .
or maybe we can get it from somewhere?