-
Notifications
You must be signed in to change notification settings - Fork 20.9k
cmd, core, params: add support for the Holesky testnet #28007
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ import ( | |
// Genesis hashes to enforce below configs on. | ||
var ( | ||
MainnetGenesisHash = common.HexToHash("0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3") | ||
HoleskyGenesisHash = common.HexToHash("0xff9006519a8ce843ac9c28549d24211420b546e12ce2d170c77a8cca7964f23d") | ||
SepoliaGenesisHash = common.HexToHash("0x25a5cc106eea7138acab33231d7160d69cb777ee0c2c553fcddf5138993e6dd9") | ||
GoerliGenesisHash = common.HexToHash("0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a") | ||
) | ||
|
@@ -58,6 +59,31 @@ var ( | |
ShanghaiTime: newUint64(1681338455), | ||
Ethash: new(EthashConfig), | ||
} | ||
// HoleskyChainConfig contains the chain parameters to run a node on the Holesky test network. | ||
HoleskyChainConfig = &ChainConfig{ | ||
ChainID: big.NewInt(17000), | ||
HomesteadBlock: big.NewInt(0), | ||
DAOForkBlock: nil, | ||
DAOForkSupport: true, | ||
EIP150Block: big.NewInt(0), | ||
EIP155Block: big.NewInt(0), | ||
EIP158Block: big.NewInt(0), | ||
ByzantiumBlock: big.NewInt(0), | ||
ConstantinopleBlock: big.NewInt(0), | ||
PetersburgBlock: big.NewInt(0), | ||
IstanbulBlock: big.NewInt(0), | ||
MuirGlacierBlock: nil, | ||
BerlinBlock: big.NewInt(0), | ||
LondonBlock: big.NewInt(0), | ||
ArrowGlacierBlock: nil, | ||
GrayGlacierBlock: nil, | ||
TerminalTotalDifficulty: big.NewInt(0), | ||
TerminalTotalDifficultyPassed: true, | ||
MergeNetsplitBlock: nil, | ||
ShanghaiTime: newUint64(1694790240), | ||
CancunTime: newUint64(2000000000), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From https://github.com/eth-clients/holesky:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cancun 2033 🥇 |
||
Ethash: new(EthashConfig), | ||
} | ||
// SepoliaChainConfig contains the chain parameters to run a node on the Sepolia test network. | ||
SepoliaChainConfig = &ChainConfig{ | ||
ChainID: big.NewInt(11155111), | ||
|
@@ -74,6 +100,8 @@ var ( | |
MuirGlacierBlock: big.NewInt(0), | ||
BerlinBlock: big.NewInt(0), | ||
LondonBlock: big.NewInt(0), | ||
ArrowGlacierBlock: nil, | ||
GrayGlacierBlock: nil, | ||
TerminalTotalDifficulty: big.NewInt(17_000_000_000_000_000), | ||
TerminalTotalDifficultyPassed: true, | ||
MergeNetsplitBlock: big.NewInt(1735371), | ||
|
@@ -253,6 +281,7 @@ var NetworkNames = map[string]string{ | |
MainnetChainConfig.ChainID.String(): "mainnet", | ||
GoerliChainConfig.ChainID.String(): "goerli", | ||
SepoliaChainConfig.ChainID.String(): "sepolia", | ||
HoleskyChainConfig.ChainID.String(): "holesky", | ||
} | ||
|
||
// ChainConfig is the core config which determines the blockchain settings. | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙊
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shhhh.....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we only added this to check if you review this carefully