diff options
author | Haoping Ku <haoping.ku@dexon.org> | 2018-10-19 11:43:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-19 11:43:46 +0800 |
commit | 6399946a1906190b140b546591a0f02e6199303c (patch) | |
tree | ea7c07b4d430a1ab9322f4cd17d31eec52170318 /core/nonblocking.go | |
parent | 6f672ebbd27a97815029050e4538f6d93d273771 (diff) | |
download | dexon-consensus-6399946a1906190b140b546591a0f02e6199303c.tar.gz dexon-consensus-6399946a1906190b140b546591a0f02e6199303c.tar.zst dexon-consensus-6399946a1906190b140b546591a0f02e6199303c.zip |
core: total-ordering: change early flag to mode (#227)
* core: total-ordering: change early flag to mode
Diffstat (limited to 'core/nonblocking.go')
-rw-r--r-- | core/nonblocking.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/nonblocking.go b/core/nonblocking.go index e95a035..675675b 100644 --- a/core/nonblocking.go +++ b/core/nonblocking.go @@ -35,7 +35,7 @@ type stronglyAckedEvent struct { type totalOrderingDeliveredEvent struct { blockHashes common.Hashes - early bool + mode uint32 } type blockDeliveredEvent struct { @@ -97,7 +97,7 @@ func (nb *nonBlocking) run() { case blockConfirmedEvent: nb.app.BlockConfirmed(*e.block) case totalOrderingDeliveredEvent: - nb.debug.TotalOrderingDelivered(e.blockHashes, e.early) + nb.debug.TotalOrderingDelivered(e.blockHashes, e.mode) case blockDeliveredEvent: nb.app.BlockDelivered(e.blockHash, *e.result) default: @@ -148,9 +148,9 @@ func (nb *nonBlocking) StronglyAcked(blockHash common.Hash) { // TotalOrderingDelivered is called when the total ordering algorithm deliver // a set of block. func (nb *nonBlocking) TotalOrderingDelivered( - blockHashes common.Hashes, early bool) { + blockHashes common.Hashes, mode uint32) { if nb.debug != nil { - nb.addEvent(totalOrderingDeliveredEvent{blockHashes, early}) + nb.addEvent(totalOrderingDeliveredEvent{blockHashes, mode}) } } |