aboutsummaryrefslogtreecommitdiffstats
path: root/core/test/app.go
diff options
context:
space:
mode:
authorHaoping Ku <haoping.ku@dexon.org>2018-10-19 11:43:46 +0800
committerGitHub <noreply@github.com>2018-10-19 11:43:46 +0800
commit6399946a1906190b140b546591a0f02e6199303c (patch)
treeea7c07b4d430a1ab9322f4cd17d31eec52170318 /core/test/app.go
parent6f672ebbd27a97815029050e4538f6d93d273771 (diff)
downloaddexon-consensus-6399946a1906190b140b546591a0f02e6199303c.tar
dexon-consensus-6399946a1906190b140b546591a0f02e6199303c.tar.gz
dexon-consensus-6399946a1906190b140b546591a0f02e6199303c.tar.bz2
dexon-consensus-6399946a1906190b140b546591a0f02e6199303c.tar.lz
dexon-consensus-6399946a1906190b140b546591a0f02e6199303c.tar.xz
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/test/app.go')
-rw-r--r--core/test/app.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/test/app.go b/core/test/app.go
index d9582c9..a48b3c8 100644
--- a/core/test/app.go
+++ b/core/test/app.go
@@ -62,7 +62,7 @@ type AppAckedRecord struct {
// a total-ordering deliver notification.
type AppTotalOrderRecord struct {
BlockHashes common.Hashes
- Early bool
+ Mode uint32
When time.Time
}
@@ -126,13 +126,13 @@ func (app *App) StronglyAcked(blockHash common.Hash) {
}
// TotalOrderingDelivered implements Application interface.
-func (app *App) TotalOrderingDelivered(blockHashes common.Hashes, early bool) {
+func (app *App) TotalOrderingDelivered(blockHashes common.Hashes, mode uint32) {
app.totalOrderedLock.Lock()
defer app.totalOrderedLock.Unlock()
rec := &AppTotalOrderRecord{
BlockHashes: blockHashes,
- Early: early,
+ Mode: mode,
When: time.Now().UTC(),
}
app.TotalOrdered = append(app.TotalOrdered, rec)