parent
aab793e7f4
commit
84febdddae
@ -24,6 +24,11 @@ var (
|
|||||||
ParamStoreKeyEnableCall = []byte("EnableCall")
|
ParamStoreKeyEnableCall = []byte("EnableCall")
|
||||||
ParamStoreKeyExtraEIPs = []byte("EnableExtraEIPs")
|
ParamStoreKeyExtraEIPs = []byte("EnableExtraEIPs")
|
||||||
ParamStoreKeyChainConfig = []byte("ChainConfig")
|
ParamStoreKeyChainConfig = []byte("ChainConfig")
|
||||||
|
|
||||||
|
// AvailableExtraEIPs define the list of all EIPs that can be enabled by the EVM interpreter. These EIPs are applied in
|
||||||
|
// order and can override the instruction sets from the latest hard fork enabled by the ChainConfig. For more info
|
||||||
|
// check: https://github.com/ethereum/go-ethereum/blob/v1.10.4/core/vm/interpreter.go#L122
|
||||||
|
AvailableExtraEIPs = []int64{1344, 1884, 2200, 2929}
|
||||||
)
|
)
|
||||||
|
|
||||||
// ParamKeyTable returns the parameter key table.
|
// ParamKeyTable returns the parameter key table.
|
||||||
@ -43,13 +48,14 @@ func NewParams(evmDenom string, enableCreate, enableCall bool, config ChainConfi
|
|||||||
}
|
}
|
||||||
|
|
||||||
// DefaultParams returns default evm parameters
|
// DefaultParams returns default evm parameters
|
||||||
|
// ExtraEIPs is empty to prevent overriding the latest hard fork instruction set
|
||||||
func DefaultParams() Params {
|
func DefaultParams() Params {
|
||||||
return Params{
|
return Params{
|
||||||
EvmDenom: DefaultEVMDenom,
|
EvmDenom: DefaultEVMDenom,
|
||||||
EnableCreate: true,
|
EnableCreate: true,
|
||||||
EnableCall: true,
|
EnableCall: true,
|
||||||
ExtraEIPs: []int64{2929, 2200, 1884, 1344},
|
|
||||||
ChainConfig: DefaultChainConfig(),
|
ChainConfig: DefaultChainConfig(),
|
||||||
|
ExtraEIPs: nil,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user