diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-11-29 09:46:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-29 09:46:40 +0800 |
commit | 8470ac070f097b261fddc42991a4d2e9ec998db6 (patch) | |
tree | 2aeedc0e2d96937394e7929c8bd4ab1b9ee37240 /integration_test/stats.go | |
parent | 9ea448b35bfbc12155bf4c286fb5ed657919c1cf (diff) | |
download | tangerine-consensus-8470ac070f097b261fddc42991a4d2e9ec998db6.tar tangerine-consensus-8470ac070f097b261fddc42991a4d2e9ec998db6.tar.gz tangerine-consensus-8470ac070f097b261fddc42991a4d2e9ec998db6.tar.bz2 tangerine-consensus-8470ac070f097b261fddc42991a4d2e9ec998db6.tar.lz tangerine-consensus-8470ac070f097b261fddc42991a4d2e9ec998db6.tar.xz tangerine-consensus-8470ac070f097b261fddc42991a4d2e9ec998db6.tar.zst tangerine-consensus-8470ac070f097b261fddc42991a4d2e9ec998db6.zip |
core: remove StronglyAcked (#347)
Diffstat (limited to 'integration_test/stats.go')
-rw-r--r-- | integration_test/stats.go | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/integration_test/stats.go b/integration_test/stats.go index 311e21a..79f1c20 100644 --- a/integration_test/stats.go +++ b/integration_test/stats.go @@ -17,15 +17,15 @@ var ( // StatsSet represents accumulatee result of a group of related events // (ex. All events from one node). type StatsSet struct { - ProposedBlockCount int - ReceivedBlockCount int - StronglyAckedBlockCount int - TotalOrderedBlockCount int - DeliveredBlockCount int - ProposingLatency time.Duration - ReceivingLatency time.Duration - PrepareExecLatency time.Duration - ProcessExecLatency time.Duration + ProposedBlockCount int + ReceivedBlockCount int + ConfirmedBlockCount int + TotalOrderedBlockCount int + DeliveredBlockCount int + ProposingLatency time.Duration + ReceivingLatency time.Duration + PrepareExecLatency time.Duration + ProcessExecLatency time.Duration } // newBlockProposeEvent accumulates a block proposing event. @@ -59,12 +59,11 @@ func (s *StatsSet) newBlockReceiveEvent( // Find statistics from test.App block := payload.PiggyBack.(*types.Block) app.Check(func(app *test.App) { - // Is this block strongly acked? - if _, exists := app.Acked[block.Hash]; !exists { + // Is this block confirmed? + if _, exists := app.Confirmed[block.Hash]; !exists { return } - s.StronglyAckedBlockCount++ - + s.ConfirmedBlockCount++ // Is this block total ordered? if _, exists := app.TotalOrderedByHash[block.Hash]; !exists { return |