diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2019-04-01 10:13:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-01 10:13:19 +0800 |
commit | 46f00c345dc0993cf888523e482ae0ff385c4391 (patch) | |
tree | f80a7d7f80474070cacfa6e1d2bebae02febdc6b | |
parent | 89f72595b39087dc6ba61a8ae3e9e80d3ba0535a (diff) | |
download | dexon-consensus-46f00c345dc0993cf888523e482ae0ff385c4391.tar dexon-consensus-46f00c345dc0993cf888523e482ae0ff385c4391.tar.gz dexon-consensus-46f00c345dc0993cf888523e482ae0ff385c4391.tar.bz2 dexon-consensus-46f00c345dc0993cf888523e482ae0ff385c4391.tar.lz dexon-consensus-46f00c345dc0993cf888523e482ae0ff385c4391.tar.xz dexon-consensus-46f00c345dc0993cf888523e482ae0ff385c4391.tar.zst dexon-consensus-46f00c345dc0993cf888523e482ae0ff385c4391.zip |
core: touch node cache even in reset (#537)
-rw-r--r-- | core/consensus.go | 3 |
1 files changed, 0 insertions, 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", |