Skip to content

Commit

Permalink
Setup genesis accounts in production. (#1204)
Browse files Browse the repository at this point in the history
  • Loading branch information
peilun-conflux authored and Peilun Li committed Apr 9, 2020
1 parent 93d6d5e commit e0a35a7
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions core/src/genesis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@ lazy_static! {
KeyPair::from_secret(DEV_GENESIS_PRI_KEY_2.parse().unwrap(),).unwrap();
}

pub fn default(dev_or_test_mode: bool) -> HashMap<Address, U256> {
pub fn default(_dev_or_test_mode: bool) -> HashMap<Address, U256> {
let mut accounts: HashMap<Address, U256> = HashMap::new();
if dev_or_test_mode {
let balance = U256::from_dec_str("5000000000000000000000000000000000")
.expect("Not overflow"); // 5*10^33
accounts.insert(DEV_GENESIS_KEY_PAIR.address(), balance);
accounts.insert(DEV_GENESIS_KEY_PAIR_2.address(), balance);
}
// FIXME: Decide the genesis initialization for mainnet.
let balance = U256::from_dec_str("5000000000000000000000000000000000")
.expect("Not overflow"); // 5*10^33
accounts.insert(DEV_GENESIS_KEY_PAIR.address(), balance);
accounts.insert(DEV_GENESIS_KEY_PAIR_2.address(), balance);
accounts
}

Expand Down

0 comments on commit e0a35a7

Please sign in to comment.