diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-11-13 16:28:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-13 16:28:24 +0800 |
commit | 01642721a7768218e7f9a5be8f0829eb8ae7c7b1 (patch) | |
tree | a8ebe89570de317d7be047f32c8c35334e78c919 /core/utils.go | |
parent | 86838fe70789292de0851f82426e5241c0f0cc96 (diff) | |
download | dexon-consensus-01642721a7768218e7f9a5be8f0829eb8ae7c7b1.tar dexon-consensus-01642721a7768218e7f9a5be8f0829eb8ae7c7b1.tar.gz dexon-consensus-01642721a7768218e7f9a5be8f0829eb8ae7c7b1.tar.bz2 dexon-consensus-01642721a7768218e7f9a5be8f0829eb8ae7c7b1.tar.lz dexon-consensus-01642721a7768218e7f9a5be8f0829eb8ae7c7b1.tar.xz dexon-consensus-01642721a7768218e7f9a5be8f0829eb8ae7c7b1.tar.zst dexon-consensus-01642721a7768218e7f9a5be8f0829eb8ae7c7b1.zip |
core: expose implicit round shift (#321)
Diffstat (limited to 'core/utils.go')
-rw-r--r-- | core/utils.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/core/utils.go b/core/utils.go index 9159be8..6b9ce63 100644 --- a/core/utils.go +++ b/core/utils.go @@ -159,14 +159,3 @@ func DiffUint64(a, b uint64) uint64 { } return b - a } - -// notifyGenesisRounds notifies governance to generate configs based on genesis -// state. -func notifyGenesisRounds(initBlock *types.Block, gov Governance) { - if initBlock.Position.Round != 0 || !initBlock.IsGenesis() { - return - } - for round := uint64(0); round < roundShift; round++ { - gov.NotifyRoundHeight(round, 0) - } -} |