diff options
author | Aaron Buchwald <[email protected]> | 2020-12-15 17:30:03 -0500 |
---|---|---|
committer | Aaron Buchwald <[email protected]> | 2020-12-15 17:30:03 -0500 |
commit | cc2a13f91f95bd377f5c3efb86ebbcc7096f6d97 (patch) | |
tree | 141d6f6a5a6f1d73ea934f2923ec439f6ca1ef69 /plugin | |
parent | b892b31f7f9bc9a63eb9774e7fbe0b5cd82891ae (diff) |
Set chain rules based on block times for mainnet/fuji
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/evm/vm.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go index fc571b9..2732a79 100644 --- a/plugin/evm/vm.go +++ b/plugin/evm/vm.go @@ -243,11 +243,10 @@ func (vm *VM) Initialize( // TODO switch to correct block number of the fork switch { case g.Config.ChainID.Cmp(params.AvalancheMainnetChainID) == 0: - g.Config.ApricotBlock = nil + g.Config = params.AvalancheApricotMainnetChainConfig case g.Config.ChainID.Cmp(params.AvalancheFujiChainID) == 0: - g.Config.ApricotBlock = nil + g.Config = params.AvalancheApricotFujiChainConfig } - vm.acceptedDB = prefixdb.New([]byte(acceptedPrefix), db) vm.chainID = g.Config.ChainID |