From 46f00c345dc0993cf888523e482ae0ff385c4391 Mon Sep 17 00:00:00 2001 From: Jimmy Hu Date: Mon, 1 Apr 2019 10:13:19 +0800 Subject: core: touch node cache even in reset (#537) --- core/consensus.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/consensus.go b/core/consensus.go index 05d0b93..172adfd 100644 --- a/core/consensus.go +++ b/core/consensus.go @@ -896,9 +896,6 @@ func (con *Consensus) prepare(initBlock *types.Block) (err error) { con.roundEvent.Register(func(evts []utils.RoundEventParam) { e := evts[len(evts)-1] defer elapse("touch-NodeSetCache", e)() - if e.Reset != 0 { - return - } con.event.RegisterHeight(e.NextTouchNodeSetCacheHeight(), func(uint64) { if err := con.nodeSetCache.Touch(e.Round + 1); err != nil { con.logger.Warn("Failed to update nodeSetCache", -- cgit v1.2.3