From c852eda00f781abafaab2b41d2c1a85fe9d3177f Mon Sep 17 00:00:00 2001 From: Mission Liao Date: Wed, 20 Mar 2019 17:29:22 +0800 Subject: 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. --- core/utils/round-based-config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/utils/round-based-config.go') diff --git a/core/utils/round-based-config.go b/core/utils/round-based-config.go index 3219a13..4c83d04 100644 --- a/core/utils/round-based-config.go +++ b/core/utils/round-based-config.go @@ -90,7 +90,7 @@ func (c *RoundBasedConfig) RoundEndHeight() uint64 { return c.roundEndHeight } -// AppendTo a config in previous round. +// AppendTo a config from previous round. func (c *RoundBasedConfig) AppendTo(other RoundBasedConfig) { if c.roundID != other.roundID+1 { panic(fmt.Errorf("round IDs of configs not continuous: %d %d", -- cgit