aboutsummaryrefslogtreecommitdiffstats
path: root/core/consensus.go
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2018-11-11 13:13:40 +0800
committerGitHub <noreply@github.com>2018-11-11 13:13:40 +0800
commit795b8b5309ed94858f3bd56e42093d65dcdd0870 (patch)
tree3618a5afe6fb3b486614bd164071b2c02eed18c8 /core/consensus.go
parent81372e5746fedf0ad691ab628096b7caefbe3008 (diff)
downloaddexon-consensus-795b8b5309ed94858f3bd56e42093d65dcdd0870.tar
dexon-consensus-795b8b5309ed94858f3bd56e42093d65dcdd0870.tar.gz
dexon-consensus-795b8b5309ed94858f3bd56e42093d65dcdd0870.tar.bz2
dexon-consensus-795b8b5309ed94858f3bd56e42093d65dcdd0870.tar.lz
dexon-consensus-795b8b5309ed94858f3bd56e42093d65dcdd0870.tar.xz
dexon-consensus-795b8b5309ed94858f3bd56e42093d65dcdd0870.tar.zst
dexon-consensus-795b8b5309ed94858f3bd56e42093d65dcdd0870.zip
test: add integration test (#315)
* Rename NonByzantineTestSuite to WithSchedulerTestsuite * Add a method to query the latest position delivered * Add integration test for core.Consensus * Show detailed list for test cases in CI
Diffstat (limited to 'core/consensus.go')
-rw-r--r--core/consensus.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/core/consensus.go b/core/consensus.go
index a449701..89f2242 100644
--- a/core/consensus.go
+++ b/core/consensus.go
@@ -719,7 +719,6 @@ func (con *Consensus) initialRound(
}
con.initialRound(
startTime.Add(config.RoundInterval), nextRound, nextConfig)
- con.round = nextRound
})
}
@@ -909,9 +908,6 @@ func (con *Consensus) ProcessAgreementResult(
if !con.ccModule.blockRegistered(rand.BlockHash) {
return nil
}
- if DiffUint64(con.round, rand.Position.Round) > 1 {
- return nil
- }
// Sanity check done.
if !con.cfgModule.touchTSigHash(rand.BlockHash) {
return nil