diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-02-08 13:49:23 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-02-08 13:49:23 +0800 |
commit | eb07dbb0790fc0f5fe5b3192da6b4d04d844239f (patch) | |
tree | fc202b98db400d6760799dfa0e8e588b8375045e /light/lightchain.go | |
parent | 55599ee95d4151a2502465e0afc7c47bd1acba77 (diff) | |
download | dexon-eb07dbb0790fc0f5fe5b3192da6b4d04d844239f.tar dexon-eb07dbb0790fc0f5fe5b3192da6b4d04d844239f.tar.gz dexon-eb07dbb0790fc0f5fe5b3192da6b4d04d844239f.tar.bz2 dexon-eb07dbb0790fc0f5fe5b3192da6b4d04d844239f.tar.lz dexon-eb07dbb0790fc0f5fe5b3192da6b4d04d844239f.tar.xz dexon-eb07dbb0790fc0f5fe5b3192da6b4d04d844239f.tar.zst dexon-eb07dbb0790fc0f5fe5b3192da6b4d04d844239f.zip |
eth, light: minor light client startup cleanups
Diffstat (limited to 'light/lightchain.go')
-rw-r--r-- | light/lightchain.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/light/lightchain.go b/light/lightchain.go index 24529ef82..bc88aeb48 100644 --- a/light/lightchain.go +++ b/light/lightchain.go @@ -100,7 +100,6 @@ func NewLightChain(odr OdrBackend, config *params.ChainConfig, engine consensus. if cp, ok := trustedCheckpoints[bc.genesisBlock.Hash()]; ok { bc.addTrustedCheckpoint(cp) } - if err := bc.loadLastState(); err != nil { return nil, err } @@ -128,7 +127,7 @@ func (self *LightChain) addTrustedCheckpoint(cp trustedCheckpoint) { if self.odr.BloomIndexer() != nil { self.odr.BloomIndexer().AddKnownSectionHead(cp.sectionIdx, cp.sectionHead) } - log.Info("Added trusted checkpoint", "chain name", cp.name) + log.Info("Added trusted checkpoint", "chain", cp.name, "block", (cp.sectionIdx+1)*ChtFrequency-1, "hash", cp.sectionHead) } func (self *LightChain) getProcInterrupt() bool { |