mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 13:21:37 +00:00
refactor(params): rename AllXDPoSProtocolChanges to AllDevChainProtocolChanges (#2054)
This commit is contained in:
parent
4e902c2939
commit
8331c1431f
3 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue