Index blob hashes #27
@ -7,14 +7,16 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func ChainConfig(cc *plugeth_params.ChainConfig) *params.ChainConfig {
|
func ChainConfig(cc *plugeth_params.ChainConfig) *params.ChainConfig {
|
||||||
return ¶ms.ChainConfig{
|
ret := ¶ms.ChainConfig{
|
||||||
ChainID: cc.ChainID,
|
ChainID: cc.ChainID,
|
||||||
|
|
||||||
HomesteadBlock: cc.HomesteadBlock,
|
HomesteadBlock: cc.HomesteadBlock,
|
||||||
DAOForkBlock: cc.DAOForkBlock,
|
DAOForkBlock: cc.DAOForkBlock,
|
||||||
DAOForkSupport: cc.DAOForkSupport,
|
DAOForkSupport: cc.DAOForkSupport,
|
||||||
EIP150Block: cc.EIP150Block,
|
EIP150Block: cc.EIP150Block,
|
||||||
EIP155Block: cc.EIP155Block,
|
EIP155Block: cc.EIP155Block,
|
||||||
EIP158Block: cc.EIP158Block,
|
EIP158Block: cc.EIP158Block,
|
||||||
|
|
||||||
ByzantiumBlock: cc.ByzantiumBlock,
|
ByzantiumBlock: cc.ByzantiumBlock,
|
||||||
ConstantinopleBlock: cc.ConstantinopleBlock,
|
ConstantinopleBlock: cc.ConstantinopleBlock,
|
||||||
PetersburgBlock: cc.PetersburgBlock,
|
PetersburgBlock: cc.PetersburgBlock,
|
||||||
@ -22,5 +24,23 @@ func ChainConfig(cc *plugeth_params.ChainConfig) *params.ChainConfig {
|
|||||||
MuirGlacierBlock: cc.MuirGlacierBlock,
|
MuirGlacierBlock: cc.MuirGlacierBlock,
|
||||||
BerlinBlock: cc.BerlinBlock,
|
BerlinBlock: cc.BerlinBlock,
|
||||||
LondonBlock: cc.LondonBlock,
|
LondonBlock: cc.LondonBlock,
|
||||||
|
|
||||||
|
ArrowGlacierBlock: cc.ArrowGlacierBlock,
|
||||||
|
GrayGlacierBlock: cc.GrayGlacierBlock,
|
||||||
|
MergeNetsplitBlock: cc.MergeNetsplitBlock,
|
||||||
|
|
||||||
|
ShanghaiTime: cc.ShanghaiTime,
|
||||||
|
CancunTime: cc.CancunTime,
|
||||||
|
PragueTime: cc.PragueTime,
|
||||||
|
|
||||||
|
TerminalTotalDifficulty: cc.TerminalTotalDifficulty,
|
||||||
|
TerminalTotalDifficultyPassed: cc.TerminalTotalDifficultyPassed,
|
||||||
}
|
}
|
||||||
|
if cc.Ethash != nil {
|
||||||
|
ret.Ethash = ¶ms.EthashConfig{}
|
||||||
|
}
|
||||||
|
if cc.Clique != nil {
|
||||||
|
ret.Clique = ¶ms.CliqueConfig{cc.Clique.Period, cc.Clique.Epoch}
|
||||||
|
}
|
||||||
|
return ret
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user