diff options
Diffstat (limited to 'plugin/evm/vm.go')
-rw-r--r-- | plugin/evm/vm.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go index c9bdad9..9f5607a 100644 --- a/plugin/evm/vm.go +++ b/plugin/evm/vm.go @@ -239,6 +239,14 @@ func (vm *VM) Initialize( return err } + // If Mainnet or Fuji ChainID is present then switch + // manually set the config + switch { + case g.Config.ChainID.Cmp(params.AvalancheMainnetChainID) == 0: + g.Config.ApricotBlockTimestamp = params.AvalancheMainnetApricotTimestamp + case g.Config.ChainID.Cmp(params.AvalancheFujiChainID) == 0: + g.Config.ApricotBlockTimestamp = params.AvalancheFujiApricotTimestamp + } vm.acceptedDB = prefixdb.New([]byte(acceptedPrefix), db) vm.chainID = g.Config.ChainID |