diff options
author | Mission Liao <mission.liao@dexon.org> | 2019-03-16 10:07:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-16 10:07:08 +0800 |
commit | 50c9419ba04ed44854fdb1afc1ef2e865be9876f (patch) | |
tree | 2acafd84bdb61d54da5621c29c3914986df45b65 /core/utils/utils.go | |
parent | b02fa5ee430cff9dafc9d9c399099a88d554a083 (diff) | |
download | dexon-consensus-50c9419ba04ed44854fdb1afc1ef2e865be9876f.tar.gz dexon-consensus-50c9419ba04ed44854fdb1afc1ef2e865be9876f.tar.zst dexon-consensus-50c9419ba04ed44854fdb1afc1ef2e865be9876f.zip |
core, syncer: integrate utils.RoundEvent (#490)
Diffstat (limited to 'core/utils/utils.go')
-rw-r--r-- | core/utils/utils.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/utils/utils.go b/core/utils/utils.go index d714068..14687d6 100644 --- a/core/utils/utils.go +++ b/core/utils/utils.go @@ -139,8 +139,8 @@ func GetDKGThreshold(config *types.Config) int { return int(config.DKGSetSize/3) + 1 } -// GetNextRoundCheckpoint returns the block height to check if the next round -// is ready. -func GetNextRoundCheckpoint(begin, length uint64) uint64 { +// GetNextRoundValidationHeight returns the block height to check if the next +// round is ready. +func GetNextRoundValidationHeight(begin, length uint64) uint64 { return begin + length*9/10 } |