plugeth-statediff/adapt/util.go
Roy Crihfield b249404b47
Some checks failed
Test / Run unit tests (pull_request) Failing after 48s
Test / Run integration tests (pull_request) Failing after 5m6s
rm unused
2023-07-11 06:41:37 +08:00

27 lines
820 B
Go

package adapt
import (
"github.com/ethereum/go-ethereum/params"
plugeth_params "github.com/openrelayxyz/plugeth-utils/restricted/params"
)
func ChainConfig(cc *plugeth_params.ChainConfig) *params.ChainConfig {
return &params.ChainConfig{
ChainID: cc.ChainID,
HomesteadBlock: cc.HomesteadBlock,
DAOForkBlock: cc.DAOForkBlock,
DAOForkSupport: cc.DAOForkSupport,
EIP150Block: cc.EIP150Block,
EIP155Block: cc.EIP155Block,
EIP158Block: cc.EIP158Block,
ByzantiumBlock: cc.ByzantiumBlock,
ConstantinopleBlock: cc.ConstantinopleBlock,
PetersburgBlock: cc.PetersburgBlock,
IstanbulBlock: cc.IstanbulBlock,
MuirGlacierBlock: cc.MuirGlacierBlock,
BerlinBlock: cc.BerlinBlock,
LondonBlock: cc.LondonBlock,
}
}