diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-03-06 02:00:01 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-03-09 22:50:14 +0800 |
commit | 567d41d9363706b4b13ce0903804e8acf214af49 (patch) | |
tree | 8c091f0385589074573df3f7964c99417c5950ee /light/lightchain.go | |
parent | 3b00a77de57ab2737a7887521c192ce004c721e3 (diff) | |
download | dexon-567d41d9363706b4b13ce0903804e8acf214af49.tar dexon-567d41d9363706b4b13ce0903804e8acf214af49.tar.gz dexon-567d41d9363706b4b13ce0903804e8acf214af49.tar.bz2 dexon-567d41d9363706b4b13ce0903804e8acf214af49.tar.lz dexon-567d41d9363706b4b13ce0903804e8acf214af49.tar.xz dexon-567d41d9363706b4b13ce0903804e8acf214af49.tar.zst dexon-567d41d9363706b4b13ce0903804e8acf214af49.zip |
all: swap out the C++ ethash to the pure Go one (mining todo)
Diffstat (limited to 'light/lightchain.go')
-rw-r--r-- | light/lightchain.go | 3 |
1 files changed, 3 insertions, 0 deletions
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 } |