Skip to content

Commit

Permalink
Increase the gas limit of genesis blocks to 0x7fffffff
Browse files Browse the repository at this point in the history
  • Loading branch information
coa-telos committed Aug 14, 2024
1 parent 59df97d commit 35411e0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/chainspec/res/genesis/tevmmainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"nonce": "0x00",
"timestamp": "0x5c114972",
"extraData": "0x00000024796a9998ec49fb788de51614c57276dc6151bd2328305dba5d018897",
"gasLimit": "0x0",
"gasLimit": "0x7fffffff",
"difficulty": "0x0",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000",
Expand Down
2 changes: 1 addition & 1 deletion crates/chainspec/res/genesis/tevmtestnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"nonce": "0x00",
"timestamp": "0x5d55db93",
"extraData": "0x000000397128c497668c241b27d1521c764156cea50bcac87892fc8916e23b24",
"gasLimit": "0x0",
"gasLimit": "0x7fffffff",
"difficulty": "0x0",
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0x0000000000000000000000000000000000000000",
Expand Down
4 changes: 2 additions & 2 deletions crates/chainspec/src/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ pub static TEVMMAINNET: Lazy<Arc<ChainSpec>> = Lazy::new(|| {
genesis: serde_json::from_str(include_str!("../res/genesis/tevmmainnet.json"))
.expect("Can't deserialize Tevmmainnet genesis json"),
genesis_hash: Some(b256!(
"13f28fe4d164354cbcb0b9d8d43dff5d8e4b180e440579a55505a5fc96831c6b"
"36fe7024b760365e3970b7b403e161811c1e626edd68460272fcdfa276272563"
)),
hardforks: ChainHardforks::new(
vec![
Expand Down Expand Up @@ -272,7 +272,7 @@ pub static TEVMTESTNET: Lazy<Arc<ChainSpec>> = Lazy::new(|| {
genesis: serde_json::from_str(include_str!("../res/genesis/tevmtestnet.json"))
.expect("Can't deserialize Tevmtestnet genesis json"),
genesis_hash: Some(b256!(
"f5488543e19d3441f652d76cbd52014f9807d0f09bfa25422568b1cf3e30da1a"
"b25034033c9ca7a40e879ddcc29cf69071a22df06688b5fe8cc2d68b4e0528f9"
)),
hardforks: ChainHardforks::new(
vec![
Expand Down
4 changes: 2 additions & 2 deletions crates/primitives-traits/src/constants/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ pub const SEPOLIA_GENESIS_HASH: B256 =
#[cfg(feature = "telos")]
/// Tevmmainnet genesis hash.
pub const TEVMMAINNET_GENESIS_HASH: B256 =
b256!("13f28fe4d164354cbcb0b9d8d43dff5d8e4b180e440579a55505a5fc96831c6b");
b256!("36fe7024b760365e3970b7b403e161811c1e626edd68460272fcdfa276272563");

#[cfg(feature = "telos")]
/// Tevmtestnet genesis hash.
pub const TEVMTESTNET_GENESIS_HASH: B256 =
b256!("f5488543e19d3441f652d76cbd52014f9807d0f09bfa25422568b1cf3e30da1a");
b256!("b25034033c9ca7a40e879ddcc29cf69071a22df06688b5fe8cc2d68b4e0528f9");

/// Holesky genesis hash: `0xb5f7f912443c940f21fd611f12828d75b534364ed9e95ca4e307729a4661bde4`
pub const HOLESKY_GENESIS_HASH: B256 =
Expand Down

0 comments on commit 35411e0

Please sign in to comment.