aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/evm/vm.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go
index 2732a79..9f5607a 100644
--- a/plugin/evm/vm.go
+++ b/plugin/evm/vm.go
@@ -239,13 +239,13 @@ func (vm *VM) Initialize(
return err
}
- // Set the Apricot Fork Block on the ChainConfig
- // TODO switch to correct block number of the fork
+ // If Mainnet or Fuji ChainID is present then switch
+ // manually set the config
switch {
case g.Config.ChainID.Cmp(params.AvalancheMainnetChainID) == 0:
- g.Config = params.AvalancheApricotMainnetChainConfig
+ g.Config.ApricotBlockTimestamp = params.AvalancheMainnetApricotTimestamp
case g.Config.ChainID.Cmp(params.AvalancheFujiChainID) == 0:
- g.Config = params.AvalancheApricotFujiChainConfig
+ g.Config.ApricotBlockTimestamp = params.AvalancheFujiApricotTimestamp
}
vm.acceptedDB = prefixdb.New([]byte(acceptedPrefix), db)