aboutsummaryrefslogtreecommitdiffstats
path: root/core/nonblocking.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/nonblocking.go')
-rw-r--r--core/nonblocking.go8
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})
}
}