aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/vm.go
diff options
context:
space:
mode:
authorAaron Buchwald <[email protected]>2020-12-15 17:34:48 -0500
committerAaron Buchwald <[email protected]>2020-12-15 17:34:48 -0500
commitfaf845717a170e1c4baebaafef051d32058e2f99 (patch)
tree11c79e199e47dedfd3a692eaf21a3e5b860e0c4c /plugin/evm/vm.go
parentcc2a13f91f95bd377f5c3efb86ebbcc7096f6d97 (diff)
Move params for network upgrade
Diffstat (limited to 'plugin/evm/vm.go')
-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)