Skip to content

Commit

Permalink
update config files
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmeds committed Sep 26, 2024
1 parent 5bf0668 commit 414ba00
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion z2/resources/chain-specs/zq2-devnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ consensus.blocks_per_hour = 3600
consensus.minimum_stake = "10_000_000_000_000_000_000_000_000"
# Gas parameters
consensus.eth_block_gas_limit = 84000000
consensus.gas_price = "4_761_904_800_000"
consensus.gas_price = "4_761_904_800_000"
4 changes: 2 additions & 2 deletions z2/resources/chain-specs/zq2-perftest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ eth_chain_id = 33469
allowed_timestamp_skew = { secs = 60, nanos = 0 }
data_dir = "/data"
consensus.genesis_accounts = [ ["0xd4b13a10f43be60f8df150c0996f6de377cd770c", "21_000_000_000_000_000_000_000_000_000"] ]
consensus.genesis_deposits = [ ["b6f185408f3f50c4021d4a000295653c8d42c641ab4bde5e04fcb739888e6a976eb3b62b5b4b404c5c3dfe2aa53e7ac8", "12D3KooWLQErYMNECpTd22VtTQeGXRf18yeeEM32rVAWZ9qXdLUB", "100_000_000_000_000_000_000_000_000", "0xd4b13a10f43be60f8df150c0996f6de377cd770c"] ]
consensus.genesis_deposits = [ ["866d272c4f6ab40c7116550baaa465a62352a517d46c91b0e74ca0bb46e4face5ff77483cce64334c5843caf535dbd88", "12D3KooWNSQJTx9CyEbd7wSVUwtJ9rc6EeQACineE1WSH34NqUCB", "100_000_000_000_000_000_000_000_000", "0xd4b13a10f43be60f8df150c0996f6de377cd770c"] ]

# Reward parameters
consensus.rewards_per_hour = "51_000_000_000_000_000_000_000"
consensus.blocks_per_hour = 3600
consensus.minimum_stake = "10_000_000_000_000_000_000_000_000"
# Gas parameters
consensus.eth_block_gas_limit = 84000000
consensus.gas_price = "4_761_904_800_000"
consensus.gas_price = "4_761_904_800_000"
17 changes: 17 additions & 0 deletions z2/resources/chain-specs/zq2-uccbtest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
p2p_port = 3333
bootstrap_address = [ "12D3KooWReRperXgN12FUH6yRTXrcV3u98E753356AR1sAEJefup", "/ip4/34.87.127.118/tcp/3333" ]

[[nodes]]
eth_chain_id = 33469
allowed_timestamp_skew = { secs = 60, nanos = 0 }
data_dir = "/data"
consensus.genesis_accounts = [ ["0xc36ca59822f80b8b55cd033007cc46d5205cca3e", "21_000_000_000_000_000_000_000_000_000"] ]
consensus.genesis_deposits = [ ["807da9d051ac7d449ecacbc0e81cc26372baf5804bb9c3593305ba0a8c5877cc18d353e2bff8afc30c0502c8bfe86251", "12D3KooWATa3pVrPHb6TKr5Af1nzBszoW3QHgUCu18B9F27NVqnL", "100_000_000_000_000_000_000_000_000", "0xc36ca59822f80b8b55cd033007cc46d5205cca3e"] ]

# Reward parameters
consensus.rewards_per_hour = "51_000_000_000_000_000_000_000"
consensus.blocks_per_hour = 3600
consensus.minimum_stake = "10_000_000_000_000_000_000_000_000"
# Gas parameters
consensus.eth_block_gas_limit = 84000000
consensus.gas_price = "4_761_904_800_000"
2 changes: 1 addition & 1 deletion z2/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl Chain {

pub fn get_toml_contents(chain_name: &str) -> Result<&'static str> {
match chain_name {
"zq2-uccbtest" => Err(anyhow!("Configuration file for {} not found", chain_name)),
"zq2-uccbtest" => Ok(include_str!("../resources/chain-specs/zq2-uccbtest.toml")),
"zq2-infratest" => Err(anyhow!("Configuration file for {} not found", chain_name)),
"zq2-perftest" => Ok(include_str!("../resources/chain-specs/zq2-perftest.toml")),
"zq2-devnet" => Ok(include_str!("../resources/chain-specs/zq2-devnet.toml")),
Expand Down

0 comments on commit 414ba00

Please sign in to comment.