diff --git a/miner/miner.go b/miner/miner.go index 3990194dbb..14e5ba8d75 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -68,11 +68,6 @@ func (miner *Miner) GenerateBlock(predicateContext *precompileconfig.PredicateCo return miner.worker.commitNewWork(predicateContext) } -func (miner *Miner) GetLastBlockTime() uint64 { - // the timestamp for the new block will be >= this value - return miner.worker.chain.CurrentBlock().Time -} - // SubscribePendingLogs starts delivering logs from pending transactions // to the given channel. func (miner *Miner) SubscribePendingLogs(ch chan<- []*types.Log) event.Subscription { diff --git a/plugin/evm/syncervm_test.go b/plugin/evm/syncervm_test.go index 0908fd8e43..451af4a949 100644 --- a/plugin/evm/syncervm_test.go +++ b/plugin/evm/syncervm_test.go @@ -55,7 +55,6 @@ func TestSkipStateSync(t *testing.T) { } func TestStateSyncFromScratch(t *testing.T) { - t.Skip() rand.Seed(1) test := syncTest{ syncableInterval: 256, @@ -69,7 +68,6 @@ func TestStateSyncFromScratch(t *testing.T) { } func TestStateSyncToggleEnabledToDisabled(t *testing.T) { - t.Skip() rand.Seed(1) // Hack: registering metrics uses global variables, so we need to disable metrics here so that we can initialize the VM twice. metrics.Enabled = false