aboutsummaryrefslogtreecommitdiffstats
path: root/core/test/app.go
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2019-03-22 21:45:22 +0800
committerGitHub <noreply@github.com>2019-03-22 21:45:22 +0800
commitfb9bbdf2a34aa45c0f032b996f72cafd7bccfa80 (patch)
treec19d1204850e46145bebcb22703ebb718a5f1d7b /core/test/app.go
parent0f2dd4260fd98b2be06b7f9b0197134c89f11d3c (diff)
downloaddexon-consensus-fb9bbdf2a34aa45c0f032b996f72cafd7bccfa80.tar
dexon-consensus-fb9bbdf2a34aa45c0f032b996f72cafd7bccfa80.tar.gz
dexon-consensus-fb9bbdf2a34aa45c0f032b996f72cafd7bccfa80.tar.bz2
dexon-consensus-fb9bbdf2a34aa45c0f032b996f72cafd7bccfa80.tar.lz
dexon-consensus-fb9bbdf2a34aa45c0f032b996f72cafd7bccfa80.tar.xz
dexon-consensus-fb9bbdf2a34aa45c0f032b996f72cafd7bccfa80.tar.zst
dexon-consensus-fb9bbdf2a34aa45c0f032b996f72cafd7bccfa80.zip
core: remove initRoundBeginHeight paramenter
* Implement Governance.GetRoundHeight in test.Governance.
Diffstat (limited to 'core/test/app.go')
-rw-r--r--core/test/app.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/test/app.go b/core/test/app.go
index d704698..20fe80f 100644
--- a/core/test/app.go
+++ b/core/test/app.go
@@ -255,7 +255,7 @@ func (app *App) BlockDelivered(blockHash common.Hash, pos types.Position,
}
if app.roundToNotify == pos.Round {
if app.gov != nil {
- app.gov.NotifyRound(app.roundToNotify)
+ app.gov.NotifyRound(app.roundToNotify, pos.Height)
app.roundToNotify++
}
}