From a518d0d8c68812a5c5f7c0395ff380bfa266f493 Mon Sep 17 00:00:00 2001 From: Aaron Buchwald Date: Thu, 17 Dec 2020 22:44:48 -0500 Subject: Add logging --- plugin/evm/vm.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugin/evm') diff --git a/plugin/evm/vm.go b/plugin/evm/vm.go index ac1eb56..0d690d4 100644 --- a/plugin/evm/vm.go +++ b/plugin/evm/vm.go @@ -274,12 +274,14 @@ func (vm *VM) Initialize( } else { apricotTime := time.Unix(g.Config.ApricotBlockTimestamp.Int64(), 0) if time.Now().Before(apricotTime) { + untilApricot := time.Until(apricotTime) + log.Info(fmt.Sprintf("Minimum gas price will be updated in %v for the Apricot upgrade", untilApricot)) config.Miner.GasPrice = params.LaunchMinGasPrice config.GPO.Default = params.LaunchMinGasPrice config.TxPool.PriceLimit = params.LaunchMinGasPrice.Uint64() go func() { - time.Sleep(time.Until(apricotTime)) + time.Sleep(untilApricot) vm.chain.SetGasPrice(params.ApricotMinGasPrice) }() -- cgit v1.2.3-70-g09d2