aboutsummaryrefslogtreecommitdiffstats
path: root/core/nonblocking_test.go
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2018-11-29 09:46:40 +0800
committerGitHub <noreply@github.com>2018-11-29 09:46:40 +0800
commit8470ac070f097b261fddc42991a4d2e9ec998db6 (patch)
tree2aeedc0e2d96937394e7929c8bd4ab1b9ee37240 /core/nonblocking_test.go
parent9ea448b35bfbc12155bf4c286fb5ed657919c1cf (diff)
downloadtangerine-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 'core/nonblocking_test.go')
-rw-r--r--core/nonblocking_test.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/core/nonblocking_test.go b/core/nonblocking_test.go
index d486ca2..cec1d8d 100644
--- a/core/nonblocking_test.go
+++ b/core/nonblocking_test.go
@@ -31,7 +31,6 @@ import (
type slowApp struct {
sleep time.Duration
blockConfirmed map[common.Hash]struct{}
- stronglyAcked map[common.Hash]struct{}
totalOrderingDelivered map[common.Hash]struct{}
blockDelivered map[common.Hash]struct{}
}
@@ -40,7 +39,6 @@ func newSlowApp(sleep time.Duration) *slowApp {
return &slowApp{
sleep: sleep,
blockConfirmed: make(map[common.Hash]struct{}),
- stronglyAcked: make(map[common.Hash]struct{}),
totalOrderingDelivered: make(map[common.Hash]struct{}),
blockDelivered: make(map[common.Hash]struct{}),
}
@@ -63,11 +61,6 @@ func (app *slowApp) BlockConfirmed(block types.Block) {
app.blockConfirmed[block.Hash] = struct{}{}
}
-func (app *slowApp) StronglyAcked(blockHash common.Hash) {
- time.Sleep(app.sleep)
- app.stronglyAcked[blockHash] = struct{}{}
-}
-
func (app *slowApp) TotalOrderingDelivered(blockHashes common.Hashes, mode uint32) {
time.Sleep(app.sleep)
for _, hash := range blockHashes {
@@ -137,7 +130,6 @@ func (s *NonBlockingTestSuite) TestNonBlocking() {
Hash: hash,
Witness: types.Witness{},
})
- nbModule.StronglyAcked(hash)
nbModule.BlockDelivered(
hash, types.Position{}, types.FinalizationResult{})
}
@@ -149,7 +141,6 @@ func (s *NonBlockingTestSuite) TestNonBlocking() {
nbModule.wait()
for _, hash := range hashes {
s.Contains(app.blockConfirmed, hash)
- s.Contains(app.stronglyAcked, hash)
s.Contains(app.totalOrderingDelivered, hash)
s.Contains(app.blockDelivered, hash)
}