diff options
author | Mission Liao <mission.liao@dexon.org> | 2019-03-20 17:29:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-20 17:29:22 +0800 |
commit | c852eda00f781abafaab2b41d2c1a85fe9d3177f (patch) | |
tree | 931680bf76590c4bdb74c247582f213c17db9274 /core/test/network_test.go | |
parent | 448935829700500ecf512b9e0a6437cbb63504b3 (diff) | |
download | dexon-consensus-c852eda00f781abafaab2b41d2c1a85fe9d3177f.tar dexon-consensus-c852eda00f781abafaab2b41d2c1a85fe9d3177f.tar.gz dexon-consensus-c852eda00f781abafaab2b41d2c1a85fe9d3177f.tar.bz2 dexon-consensus-c852eda00f781abafaab2b41d2c1a85fe9d3177f.tar.lz dexon-consensus-c852eda00f781abafaab2b41d2c1a85fe9d3177f.tar.xz dexon-consensus-c852eda00f781abafaab2b41d2c1a85fe9d3177f.tar.zst dexon-consensus-c852eda00f781abafaab2b41d2c1a85fe9d3177f.zip |
core: reset DKG (#502)
* Allow utils.NodeSetCache to purge by rounds.
* Purge utils.NodeSetCache when DKG reset.
* Add a utils.RoundEvent handler to abort all
previous running DKG
* Fix test.App hangs in BlockDelivered when
utils.RoundEvent is attached.
ValidateNextRound is a blocking call and would
block test.App.BlockDelivered.
Diffstat (limited to 'core/test/network_test.go')
-rw-r--r-- | core/test/network_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/test/network_test.go b/core/test/network_test.go index 863fee2..f9a6db9 100644 --- a/core/test/network_test.go +++ b/core/test/network_test.go @@ -289,7 +289,7 @@ func (s *NetworkTestSuite) TestBroadcastToSet() { req.NotNil(nerd) req.NotNil(dkgNode) req.NotNil(notaryNode) - nerd.AddNodeSetCache(cache) + nerd.AttachNodeSetCache(cache) // Try broadcasting with datum from round 0, and make sure only node belongs // to that set receiving the message. nerd.BroadcastVote(&types.Vote{VoteHeader: types.VoteHeader{ |