diff options
author | Mission Liao <mission.liao@dexon.org> | 2019-01-24 11:16:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-24 11:16:48 +0800 |
commit | 779f63a9f6fc3f4c628f0b97c822546ac51d0eb6 (patch) | |
tree | aa25f260483e8c9430686cb10eba87d286072830 /core/test/governance.go | |
parent | 0e6dc8b38f7df249831aebd4928ec42b827038e3 (diff) | |
download | dexon-consensus-779f63a9f6fc3f4c628f0b97c822546ac51d0eb6.tar dexon-consensus-779f63a9f6fc3f4c628f0b97c822546ac51d0eb6.tar.gz dexon-consensus-779f63a9f6fc3f4c628f0b97c822546ac51d0eb6.tar.bz2 dexon-consensus-779f63a9f6fc3f4c628f0b97c822546ac51d0eb6.tar.lz dexon-consensus-779f63a9f6fc3f4c628f0b97c822546ac51d0eb6.tar.xz dexon-consensus-779f63a9f6fc3f4c628f0b97c822546ac51d0eb6.tar.zst dexon-consensus-779f63a9f6fc3f4c628f0b97c822546ac51d0eb6.zip |
core: remove Governance.NotifyRoundHeight (#431)
Diffstat (limited to 'core/test/governance.go')
-rw-r--r-- | core/test/governance.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/test/governance.go b/core/test/governance.go index 5cf9732..81ced54 100644 --- a/core/test/governance.go +++ b/core/test/governance.go @@ -93,8 +93,9 @@ func (g *Governance) CRS(round uint64) common.Hash { return g.stateModule.CRS(round) } -// NotifyRoundHeight notifies governace contract to snapshot config. -func (g *Governance) NotifyRoundHeight(round, height uint64) { +// NotifyRound notifies governace contract to snapshot config, and broadcast +// pending state change requests for next round if any. +func (g *Governance) NotifyRound(round uint64) { // Snapshot configuration for the shifted round, this behavior is synced with // full node's implementation. shiftedRound := round + g.roundShift |