aboutsummaryrefslogtreecommitdiffstats
path: root/light/lightchain.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-02-08 13:49:23 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-02-08 13:49:23 +0800
commiteb07dbb0790fc0f5fe5b3192da6b4d04d844239f (patch)
treefc202b98db400d6760799dfa0e8e588b8375045e /light/lightchain.go
parent55599ee95d4151a2502465e0afc7c47bd1acba77 (diff)
downloaddexon-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.go3
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 {