aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-10-15 15:50:11 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit0f42ef1eb32ee96d1d97d6950ddf20242e0625f4 (patch)
treeacb5aff377e0ca5d0762f56543b6acbc93eae776 /core
parente7421986559a3adb98e5d4fe33a24827eda2b97e (diff)
downloaddexon-0f42ef1eb32ee96d1d97d6950ddf20242e0625f4.tar
dexon-0f42ef1eb32ee96d1d97d6950ddf20242e0625f4.tar.gz
dexon-0f42ef1eb32ee96d1d97d6950ddf20242e0625f4.tar.bz2
dexon-0f42ef1eb32ee96d1d97d6950ddf20242e0625f4.tar.lz
dexon-0f42ef1eb32ee96d1d97d6950ddf20242e0625f4.tar.xz
dexon-0f42ef1eb32ee96d1d97d6950ddf20242e0625f4.tar.zst
dexon-0f42ef1eb32ee96d1d97d6950ddf20242e0625f4.zip
core: vm: modify dkg threshold
Diffstat (limited to 'core')
-rw-r--r--core/vm/governance.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/vm/governance.go b/core/vm/governance.go
index 3583e0cc1..c9ab74bd7 100644
--- a/core/vm/governance.go
+++ b/core/vm/governance.go
@@ -1540,7 +1540,7 @@ func (g *GovernanceContract) proposeCRS(signedCRS []byte) ([]byte, error) {
dkgComplaints = append(dkgComplaints, x)
}
- threshold := int(g.state.DKGSetSize().Uint64() / 3)
+ threshold := int(g.state.DKGSetSize().Uint64() / 3 + 1)
dkgGPK, err := core.NewDKGGroupPublicKey(
round.Uint64(), dkgMasterPKs, dkgComplaints, threshold)