diff options
author | Mission Liao <mission.liao@dexon.org> | 2019-03-11 13:35:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-11 13:35:05 +0800 |
commit | c3bda77db1c2620c5212d4369792b923227d2570 (patch) | |
tree | 3f71c76926f8008ab3eabce3dfd147ebb683dafa /core/utils.go | |
parent | 4345050093710739c9e417956bc3a8339e7d99a6 (diff) | |
download | dexon-consensus-c3bda77db1c2620c5212d4369792b923227d2570.tar dexon-consensus-c3bda77db1c2620c5212d4369792b923227d2570.tar.gz dexon-consensus-c3bda77db1c2620c5212d4369792b923227d2570.tar.bz2 dexon-consensus-c3bda77db1c2620c5212d4369792b923227d2570.tar.lz dexon-consensus-c3bda77db1c2620c5212d4369792b923227d2570.tar.xz dexon-consensus-c3bda77db1c2620c5212d4369792b923227d2570.tar.zst dexon-consensus-c3bda77db1c2620c5212d4369792b923227d2570.zip |
core: move some dkg utils (#476)
* Move core.getDKGThreshold to
core.utils.GetDKGThreshold
* Move core.DKGGroupPublicKey to
typesDKG.GroupPublicKey
Diffstat (limited to 'core/utils.go')
-rw-r--r-- | core/utils.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/core/utils.go b/core/utils.go index 46aa77a..f7dee75 100644 --- a/core/utils.go +++ b/core/utils.go @@ -229,10 +229,6 @@ func isTravisCI() bool { return isCI() && os.Getenv("TRAVIS") == "true" } -func getDKGThreshold(config *types.Config) int { - return int(config.DKGSetSize/3) + 1 -} - // checkWithCancel is a helper to perform periodic checking with cancel. func checkWithCancel(parentCtx context.Context, interval time.Duration, checker func() bool) (ret bool) { |