aboutsummaryrefslogtreecommitdiffstats
path: root/core/syncer
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2019-03-22 20:20:52 +0800
committerJimmy Hu <jimmy.hu@dexon.org>2019-03-22 20:20:52 +0800
commit0f2dd4260fd98b2be06b7f9b0197134c89f11d3c (patch)
tree49203e7f865fc823c0a51d88da27c3ff05656357 /core/syncer
parent99723721b79e7f1cf5d1009d9117705d84df5eaa (diff)
downloadtangerine-consensus-0f2dd4260fd98b2be06b7f9b0197134c89f11d3c.tar
tangerine-consensus-0f2dd4260fd98b2be06b7f9b0197134c89f11d3c.tar.gz
tangerine-consensus-0f2dd4260fd98b2be06b7f9b0197134c89f11d3c.tar.bz2
tangerine-consensus-0f2dd4260fd98b2be06b7f9b0197134c89f11d3c.tar.lz
tangerine-consensus-0f2dd4260fd98b2be06b7f9b0197134c89f11d3c.tar.xz
tangerine-consensus-0f2dd4260fd98b2be06b7f9b0197134c89f11d3c.tar.zst
tangerine-consensus-0f2dd4260fd98b2be06b7f9b0197134c89f11d3c.zip
core: abort hang DKG (#508)
* Capitalize log * Fix DKG aborting hangs Make sure reset cc.dkg to nil in runDKG * Remember to purge tsig verfier too * Replace abortCh with context.Context * Fix obvious bug * Fixup: forever blockin at Wait method when runDKG is not called * Fixup: fix corner case If the Add(1) moved to runDKG under cc.dkgLock, we may not catch it after unlocking cc.dkgLock. * fixup
Diffstat (limited to 'core/syncer')
-rw-r--r--core/syncer/consensus.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/syncer/consensus.go b/core/syncer/consensus.go
index 4fc24b4..f5099e4 100644
--- a/core/syncer/consensus.go
+++ b/core/syncer/consensus.go
@@ -176,6 +176,7 @@ func (con *Consensus) assureBuffering() {
continue
}
con.nodeSetCache.Purge(e.Round + 1)
+ con.tsigVerifier.Purge(e.Round + 1)
}
})
// Register a round event handler to notify CRS to agreementModule.