diff options
author | Mission Liao <mission.liao@dexon.org> | 2019-03-23 23:41:04 +0800 |
---|---|---|
committer | Jimmy Hu <jimmy.hu@dexon.org> | 2019-03-23 23:41:04 +0800 |
commit | d077a35470cf4b6e7c82bd4b03a1f2b87b0f9add (patch) | |
tree | 8bf24cbb04def6851a474bdc941e19bd8ce9c2e7 /core/agreement.go | |
parent | fb9bbdf2a34aa45c0f032b996f72cafd7bccfa80 (diff) | |
download | dexon-consensus-d077a35470cf4b6e7c82bd4b03a1f2b87b0f9add.tar dexon-consensus-d077a35470cf4b6e7c82bd4b03a1f2b87b0f9add.tar.gz dexon-consensus-d077a35470cf4b6e7c82bd4b03a1f2b87b0f9add.tar.bz2 dexon-consensus-d077a35470cf4b6e7c82bd4b03a1f2b87b0f9add.tar.lz dexon-consensus-d077a35470cf4b6e7c82bd4b03a1f2b87b0f9add.tar.xz dexon-consensus-d077a35470cf4b6e7c82bd4b03a1f2b87b0f9add.tar.zst dexon-consensus-d077a35470cf4b6e7c82bd4b03a1f2b87b0f9add.zip |
core: refine DKG aborting (#512)
* Avoid aborting the DKG protocol registered later
Although that DKG protocol would be registered after
1/2 round, both of them are triggered in separated
go routine and we shouldn't assuem their execution order.
* Capitalize logs
* Add test
* Return aborted when not running
* Log DKG aborting result
* Remove duplicated DKG abort
Diffstat (limited to 'core/agreement.go')
-rw-r--r-- | core/agreement.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/agreement.go b/core/agreement.go index b0c7734..1919830 100644 --- a/core/agreement.go +++ b/core/agreement.go @@ -239,14 +239,14 @@ func (a *agreement) restart( for _, block := range replayBlock { if err := a.processBlock(block); err != nil { - a.logger.Error("failed to process block when restarting agreement", + a.logger.Error("Failed to process block when restarting agreement", "block", block) } } for _, vote := range replayVote { if err := a.processVote(vote); err != nil { - a.logger.Error("failed to process vote when restarting agreement", + a.logger.Error("Failed to process vote when restarting agreement", "vote", vote) } } |