diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-10-03 14:04:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-03 14:04:01 +0800 |
commit | 4d2cd087071d4892afae383dae98dcbdb8431e9b (patch) | |
tree | f046d3f6ddffce64f4f082a33db571056621b020 /core/consensus.go | |
parent | eb1fa8a1f9e8ba3cab764ecfe06336e63d798184 (diff) | |
download | tangerine-consensus-4d2cd087071d4892afae383dae98dcbdb8431e9b.tar tangerine-consensus-4d2cd087071d4892afae383dae98dcbdb8431e9b.tar.gz tangerine-consensus-4d2cd087071d4892afae383dae98dcbdb8431e9b.tar.bz2 tangerine-consensus-4d2cd087071d4892afae383dae98dcbdb8431e9b.tar.lz tangerine-consensus-4d2cd087071d4892afae383dae98dcbdb8431e9b.tar.xz tangerine-consensus-4d2cd087071d4892afae383dae98dcbdb8431e9b.tar.zst tangerine-consensus-4d2cd087071d4892afae383dae98dcbdb8431e9b.zip |
core: Add unit test for DKG CRS in consensus (#163)
Diffstat (limited to 'core/consensus.go')
-rw-r--r-- | core/consensus.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/consensus.go b/core/consensus.go index 6cc0937..51c4e35 100644 --- a/core/consensus.go +++ b/core/consensus.go @@ -428,6 +428,11 @@ func (con *Consensus) runCRS() { } con.cfgModule.registerDKG(con.round+1, con.currentConfig.NumDKGSet/3) <-ticker.Tick() + select { + case <-con.ctx.Done(): + return + default: + } // Change round. con.round++ con.currentConfig = con.gov.Configuration(con.round) |