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/test/app.go | |
parent | 6f672ebbd27a97815029050e4538f6d93d273771 (diff) | |
download | tangerine-consensus-6399946a1906190b140b546591a0f02e6199303c.tar tangerine-consensus-6399946a1906190b140b546591a0f02e6199303c.tar.gz tangerine-consensus-6399946a1906190b140b546591a0f02e6199303c.tar.bz2 tangerine-consensus-6399946a1906190b140b546591a0f02e6199303c.tar.lz tangerine-consensus-6399946a1906190b140b546591a0f02e6199303c.tar.xz tangerine-consensus-6399946a1906190b140b546591a0f02e6199303c.tar.zst tangerine-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.go | 6 |
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) |