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-mgr.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-mgr.go')
-rw-r--r-- | core/agreement-mgr.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/agreement-mgr.go b/core/agreement-mgr.go index 14aa385..d29863d 100644 --- a/core/agreement-mgr.go +++ b/core/agreement-mgr.go @@ -337,7 +337,7 @@ func (mgr *agreementMgr) runBA(initRound uint64) { if curConfig = mgr.config(nextRound); curConfig != nil { break } else { - mgr.logger.Debug("round is not ready", "round", nextRound) + mgr.logger.Debug("Round is not ready", "round", nextRound) time.Sleep(1 * time.Second) } } @@ -350,11 +350,11 @@ func (mgr *agreementMgr) runBA(initRound uint64) { setting.notarySet = notarySet _, isNotary = setting.notarySet[mgr.ID] if isNotary { - mgr.logger.Info("selected as notary set", + mgr.logger.Info("Selected as notary set", "ID", mgr.ID, "round", nextRound) } else { - mgr.logger.Info("not selected as notary set", + mgr.logger.Info("Not selected as notary set", "ID", mgr.ID, "round", nextRound) } |