diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2019-03-12 17:53:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-12 17:53:33 +0800 |
commit | 05b87ad32f30deebdbcb82e53362765a46bf8d0e (patch) | |
tree | b907f23fd576c0105d3cd99361c4e4c271045b46 | |
parent | 0cbdfa83622dbd396a2ccfe29b0e6d7958238180 (diff) | |
download | dexon-consensus-05b87ad32f30deebdbcb82e53362765a46bf8d0e.tar dexon-consensus-05b87ad32f30deebdbcb82e53362765a46bf8d0e.tar.gz dexon-consensus-05b87ad32f30deebdbcb82e53362765a46bf8d0e.tar.bz2 dexon-consensus-05b87ad32f30deebdbcb82e53362765a46bf8d0e.tar.lz dexon-consensus-05b87ad32f30deebdbcb82e53362765a46bf8d0e.tar.xz dexon-consensus-05b87ad32f30deebdbcb82e53362765a46bf8d0e.tar.zst dexon-consensus-05b87ad32f30deebdbcb82e53362765a46bf8d0e.zip |
core: touch tsigVerifier in blockchain module (#486)
-rw-r--r-- | core/consensus.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/consensus.go b/core/consensus.go index ccb3326..d2c6dc3 100644 --- a/core/consensus.go +++ b/core/consensus.go @@ -845,6 +845,10 @@ func (con *Consensus) initialRound( con.logger.Warn("Failed to update nodeSetCache", "round", round+1, "error", err) } + if _, _, err := con.bcModule.vGetter.UpdateAndGet(round + 1); err != nil { + con.logger.Warn("Failed to update tsigVerifierCache", + "round", round+1, "error", err) + } }() }) } |