From 567d41d9363706b4b13ce0903804e8acf214af49 Mon Sep 17 00:00:00 2001 From: Péter Szilágyi Date: Sun, 5 Mar 2017 20:00:01 +0200 Subject: all: swap out the C++ ethash to the pure Go one (mining todo) --- light/lightchain.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'light/lightchain.go') diff --git a/light/lightchain.go b/light/lightchain.go index 773c0f38b..a45022e81 100644 --- a/light/lightchain.go +++ b/light/lightchain.go @@ -169,6 +169,9 @@ func (self *LightChain) loadLastState() error { headerTd := self.GetTd(header.Hash(), header.Number.Uint64()) log.Info("Loaded most recent local header", "number", header.Number, "hash", header.Hash(), "td", headerTd) + // Try to be smart and issue a pow verification for the head to pre-generate caches + go self.pow.Verify(types.NewBlockWithHeader(header)) + return nil } -- cgit