aboutsummaryrefslogtreecommitdiffstats
path: root/core/test/governance.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-03-27 19:53:05 +0800
committerGitHub <noreply@github.com>2019-03-27 19:53:05 +0800
commit5f5d8a58dd853f32340469681f7454b838fc4786 (patch)
treeecaed9c56273b3dbb476ef198b8e14db33c8bb48 /core/test/governance.go
parente41fcf0bb3f5fe6d473ef2056b6143b92c65faf3 (diff)
downloaddexon-consensus-5f5d8a58dd853f32340469681f7454b838fc4786.tar
dexon-consensus-5f5d8a58dd853f32340469681f7454b838fc4786.tar.gz
dexon-consensus-5f5d8a58dd853f32340469681f7454b838fc4786.tar.bz2
dexon-consensus-5f5d8a58dd853f32340469681f7454b838fc4786.tar.lz
dexon-consensus-5f5d8a58dd853f32340469681f7454b838fc4786.tar.xz
dexon-consensus-5f5d8a58dd853f32340469681f7454b838fc4786.tar.zst
dexon-consensus-5f5d8a58dd853f32340469681f7454b838fc4786.zip
core: workaround for GetRoundHeight (#523)
* core: workaround for GetRoundHeight * update gopkg.lock * x
Diffstat (limited to 'core/test/governance.go')
-rw-r--r--core/test/governance.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/test/governance.go b/core/test/governance.go
index 538d064..4970420 100644
--- a/core/test/governance.go
+++ b/core/test/governance.go
@@ -100,7 +100,8 @@ func (g *Governance) GetRoundHeight(round uint64) uint64 {
panic(fmt.Errorf("round begin height is not ready: %d %d",
round, len(g.roundBeginHeights)))
}
- return g.roundBeginHeights[round]
+ // TODO(jimmy): remove this workaround.
+ return g.roundBeginHeights[round] + 1
}
// CRS returns the CRS for a given round.