aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorAaron Buchwald <[email protected]>2020-12-17 22:44:48 -0500
committerAaron Buchwald <[email protected]>2020-12-17 22:44:48 -0500
commita518d0d8c68812a5c5f7c0395ff380bfa266f493 (patch)
treec79bd1944e68a298c589dde7a2633cdeabe69958 /plugin
parentd69433af4631bb12d9e3e56e94f8adadd5967fe7 (diff)
Add logging
Diffstat (limited to 'plugin')
-rw-r--r--plugin/evm/vm.go4
1 files changed, 3 insertions, 1 deletions
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)
}()