Skip to content

Commit 0a2a537

Browse files
authored
feat: bump validator balance to 100k CPH (#204)
1 parent 4aff943 commit 0a2a537

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

crates/node/src/genesis_bootstrap.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ impl Default for GenesisGeneratorConfig {
227227
network_id: "cipherbft-testnet-1".to_string(),
228228
// 32 CPH = 32 * 10^18 wei = 0x1bc16d674ec80000
229229
initial_stake: U256::from(32_000_000_000_000_000_000u128),
230-
// 100 CPH = 100 * 10^18 wei
231-
initial_balance: U256::from(100_000_000_000_000_000_000u128),
230+
// 100,000 CPH = 100,000 * 10^18 wei
231+
initial_balance: U256::from(100_000_000_000_000_000_000_000u128),
232232
gas_limit: U256::from(30_000_000u64),
233233
extra_alloc: Vec::new(),
234234
}
@@ -497,7 +497,7 @@ impl GenesisGenerator {
497497
/// 85300,
498498
/// "cipherbft-testnet-1",
499499
/// 32_000_000_000_000_000_000u128.into(), // 32 CPH
500-
/// 100_000_000_000_000_000_000u128.into(), // 100 CPH
500+
/// 100_000_000_000_000_000_000_000u128.into(), // 100,000 CPH
501501
/// )?;
502502
/// ```
503503
pub fn generate_from_validator_keys(
@@ -1001,10 +1001,10 @@ mod tests {
10011001
config.initial_stake,
10021002
U256::from(32_000_000_000_000_000_000u128)
10031003
);
1004-
// 100 CPH in wei
1004+
// 100,000 CPH in wei
10051005
assert_eq!(
10061006
config.initial_balance,
1007-
U256::from(100_000_000_000_000_000_000u128)
1007+
U256::from(100_000_000_000_000_000_000_000u128)
10081008
);
10091009
// 30M gas
10101010
assert_eq!(config.gas_limit, U256::from(30_000_000u64));

crates/node/tests/cli_extra_alloc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ fn test_genesis_generate_extra_alloc_balance_conversion() {
119119
.get("0x3e54b36f4f8efaa017888e66fb6db17098437ac7")
120120
.unwrap();
121121

122-
// 100 ETH = 100 * 10^18 wei = 0x56bc75e2d63100000
122+
// 100 CPH = 100 * 10^18 wei = 0x56bc75e2d63100000
123123
let balance = entry["balance"].as_str().unwrap();
124124
assert_eq!(
125125
balance, "0x56bc75e2d63100000",
126-
"Expected 100 ETH in wei (hex)"
126+
"Expected 100 CPH in wei (hex)"
127127
);
128128
}
129129

devnet/genesis.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
},
1717
"alloc": {
1818
"0x70997970c51812dc3a010c7d01b50e0d17dc79c8": {
19-
"balance": "0x56bc75e2d63100000"
19+
"balance": "0x152d02c7e14af6800000"
2020
},
2121
"0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266": {
22-
"balance": "0x56bc75e2d63100000"
22+
"balance": "0x152d02c7e14af6800000"
2323
},
2424
"0x3c44cdddb6a900fa2b585dd299e03d12fa4293bc": {
25-
"balance": "0x56bc75e2d63100000"
25+
"balance": "0x152d02c7e14af6800000"
2626
}
2727
},
2828
"gasLimit": "0x1c9c380",

0 commit comments

Comments
 (0)