mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-16 18:00:46 +00:00
core/vm: enable cancun instruction set
This commit is contained in:
parent
000ace69f4
commit
30195e88ee
3 changed files with 4 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ var DevnetConstant = constant{
|
||||||
tipXDCXMinerDisable: big.NewInt(0),
|
tipXDCXMinerDisable: big.NewInt(0),
|
||||||
tipXDCXReceiverDisable: big.NewInt(0),
|
tipXDCXReceiverDisable: big.NewInt(0),
|
||||||
eip1559Block: big.NewInt(0),
|
eip1559Block: big.NewInt(0),
|
||||||
cancunBlock: big.NewInt(9999999999),
|
cancunBlock: big.NewInt(1702800),
|
||||||
|
|
||||||
trc21IssuerSMCTestNet: HexToAddress("0x0E2C88753131CE01c7551B726b28BFD04e44003F"),
|
trc21IssuerSMCTestNet: HexToAddress("0x0E2C88753131CE01c7551B726b28BFD04e44003F"),
|
||||||
trc21IssuerSMC: HexToAddress("0x8c0faeb5C6bEd2129b8674F262Fd45c4e9468bee"),
|
trc21IssuerSMC: HexToAddress("0x8c0faeb5C6bEd2129b8674F262Fd45c4e9468bee"),
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,8 @@ func NewEVMInterpreter(evm *EVM) *EVMInterpreter {
|
||||||
// If jump table was not initialised we set the default one.
|
// If jump table was not initialised we set the default one.
|
||||||
var table *JumpTable
|
var table *JumpTable
|
||||||
switch {
|
switch {
|
||||||
|
case evm.chainRules.IsCancun:
|
||||||
|
table = &cancunInstructionSet
|
||||||
case evm.chainRules.IsEIP1559:
|
case evm.chainRules.IsEIP1559:
|
||||||
table = &eip1559InstructionSet
|
table = &eip1559InstructionSet
|
||||||
case evm.chainRules.IsShanghai:
|
case evm.chainRules.IsShanghai:
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,7 @@ var (
|
||||||
mergeInstructionSet = newMergeInstructionSet()
|
mergeInstructionSet = newMergeInstructionSet()
|
||||||
shanghaiInstructionSet = newShanghaiInstructionSet()
|
shanghaiInstructionSet = newShanghaiInstructionSet()
|
||||||
eip1559InstructionSet = newEip1559InstructionSet()
|
eip1559InstructionSet = newEip1559InstructionSet()
|
||||||
|
cancunInstructionSet = newCancunInstructionSet()
|
||||||
)
|
)
|
||||||
|
|
||||||
// JumpTable contains the EVM opcodes supported at a given fork.
|
// JumpTable contains the EVM opcodes supported at a given fork.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue