aboutsummaryrefslogtreecommitdiffstats
path: root/integration_test
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2018-12-27 10:30:17 +0800
committerGitHub <noreply@github.com>2018-12-27 10:30:17 +0800
commit2a8254195f56cc10252753f828458b6efe222558 (patch)
tree568812179ac9485667e4a35a5c01710c900868e3 /integration_test
parentca82c3c26ac206c2c81dfa636902aacf327381b1 (diff)
downloaddexon-consensus-2a8254195f56cc10252753f828458b6efe222558.tar
dexon-consensus-2a8254195f56cc10252753f828458b6efe222558.tar.gz
dexon-consensus-2a8254195f56cc10252753f828458b6efe222558.tar.bz2
dexon-consensus-2a8254195f56cc10252753f828458b6efe222558.tar.lz
dexon-consensus-2a8254195f56cc10252753f828458b6efe222558.tar.xz
dexon-consensus-2a8254195f56cc10252753f828458b6efe222558.tar.zst
dexon-consensus-2a8254195f56cc10252753f828458b6efe222558.zip
test: add witness preparation/verification (#386)
Diffstat (limited to 'integration_test')
-rw-r--r--integration_test/consensus_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/integration_test/consensus_test.go b/integration_test/consensus_test.go
index d70ae4f..23a4b3c 100644
--- a/integration_test/consensus_test.go
+++ b/integration_test/consensus_test.go
@@ -146,6 +146,10 @@ func (s *ConsensusTestSuite) syncBlocksWithSomeNode(
}
err = nil
}
+ // Sync app.
+ syncNode.app.BlockConfirmed(*b)
+ syncNode.app.BlockDelivered(b.Hash, b.Position, b.Finalization)
+ // Sync gov.
syncNode.gov.CatchUpWithRound(
b.Position.Round + core.ConfigRoundShift)
}