Skip to content

Commit 0090fbf

Browse files
jsvisaj75689
authored andcommitted
feat(genesis): rm EIP150Hash (alloy-rs#1039)
* feat(genesis): rm eip150_hash Signed-off-by: jsvisa <[email protected]> * fix testcase Signed-off-by: jsvisa <[email protected]> --------- Signed-off-by: jsvisa <[email protected]>
1 parent 36a503a commit 0090fbf

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

crates/genesis/src/lib.rs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ impl GenesisAccount {
255255
/// Encapsulates parameters shaping network evolution and behavior.
256256
///
257257
/// See [geth's `ChainConfig`
258-
/// struct](https://github.com/ethereum/go-ethereum/blob/64dccf7aa411c5c7cd36090c3d9b9892945ae813/params/config.go#L349)
258+
/// struct](https://github.com/ethereum/go-ethereum/blob/v1.14.0/params/config.go#L326)
259259
/// for the source of each field.
260260
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
261261
#[serde(default, rename_all = "camelCase")]
@@ -287,10 +287,6 @@ pub struct ChainConfig {
287287
)]
288288
pub eip150_block: Option<u64>,
289289

290-
/// The [EIP-150](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-150.md) hard fork hash.
291-
#[serde(skip_serializing_if = "Option::is_none")]
292-
pub eip150_hash: Option<B256>,
293-
294290
/// The [EIP-155](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md) hard fork block.
295291
#[serde(
296292
skip_serializing_if = "Option::is_none",
@@ -528,7 +524,6 @@ impl Default for ChainConfig {
528524
dao_fork_block: None,
529525
dao_fork_support: false,
530526
eip150_block: None,
531-
eip150_hash: None,
532527
eip155_block: None,
533528
eip158_block: None,
534529
byzantium_block: None,
@@ -987,7 +982,6 @@ mod tests {
987982
"chainId": 1337,
988983
"homesteadBlock": 0,
989984
"eip150Block": 0,
990-
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
991985
"eip155Block": 0,
992986
"eip158Block": 0,
993987
"byzantiumBlock": 0,
@@ -1020,9 +1014,6 @@ mod tests {
10201014
let expected_genesis = Genesis {
10211015
config: ChainConfig {
10221016
chain_id: 1337,
1023-
eip150_hash: Some(
1024-
hex!("0000000000000000000000000000000000000000000000000000000000000000").into(),
1025-
),
10261017
homestead_block: Some(0),
10271018
eip150_block: Some(0),
10281019
eip155_block: Some(0),
@@ -1065,7 +1056,6 @@ mod tests {
10651056
"chainId": 1337,
10661057
"homesteadBlock": 0,
10671058
"eip150Block": 0,
1068-
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
10691059
"eip155Block": 0,
10701060
"eip158Block": 0,
10711061
"byzantiumBlock": 0,
@@ -1097,9 +1087,6 @@ mod tests {
10971087
let expected_genesis = Genesis {
10981088
config: ChainConfig {
10991089
chain_id: 1337,
1100-
eip150_hash: Some(
1101-
hex!("0000000000000000000000000000000000000000000000000000000000000000").into(),
1102-
),
11031090
homestead_block: Some(0),
11041091
eip150_block: Some(0),
11051092
eip155_block: Some(0),

0 commit comments

Comments
 (0)