refactor(params): rename AllXDPoSProtocolChanges to AllDevChainProtocolChanges (#2054)

This commit is contained in:
Daniel Liu 2026-03-10 21:12:26 +08:00 committed by GitHub
parent 4e902c2939
commit 8331c1431f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -468,7 +468,7 @@ func DefaultDevnetGenesisBlock() *Genesis {
// DeveloperGenesisBlock returns the 'geth --dev' genesis block.
func DeveloperGenesisBlock(period uint64, faucet common.Address) *Genesis {
// Override the default period to the user requested one
config := *params.AllXDPoSProtocolChanges
config := *params.AllDevChainProtocolChanges
config.XDPoS.Period = period
// Assemble and return the genesis with the precompiles and faucet pre-funded

View file

@ -71,7 +71,7 @@ var (
)
var testChainConfig = func() *params.ChainConfig {
config := *params.AllXDPoSProtocolChanges
config := *params.AllDevChainProtocolChanges
if config.XDPoS != nil {
xdpos := *config.XDPoS
if xdpos.Period == 0 {

View file

@ -341,12 +341,12 @@ var (
XDPoS: nil,
}
// AllXDPoSProtocolChanges contains every protocol change (EIPs) introduced
// AllDevChainProtocolChanges contains every protocol change (EIPs) introduced
// and accepted by the Ethereum core developers into the XDPoS consensus.
//
// This configuration is intentionally not using keyed fields to force anyone
// adding flags to the config to also have to set these fields.
AllXDPoSProtocolChanges = &ChainConfig{
AllDevChainProtocolChanges = &ChainConfig{
ChainID: big.NewInt(1337),
HomesteadBlock: big.NewInt(0),
DAOForkBlock: nil,