diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-10-15 15:50:11 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:23:39 +0800 |
commit | 41ec6da863df75ce717654d9c8639594cbdb5b4a (patch) | |
tree | c9b0a1251551c47e20d1e90cdfada70fb5699d38 /core | |
parent | af9618a132819768c0890ce655cc49fdf030deab (diff) | |
download | go-tangerine-41ec6da863df75ce717654d9c8639594cbdb5b4a.tar.gz go-tangerine-41ec6da863df75ce717654d9c8639594cbdb5b4a.tar.zst go-tangerine-41ec6da863df75ce717654d9c8639594cbdb5b4a.zip |
core: vm: modify dkg threshold
Diffstat (limited to 'core')
-rw-r--r-- | core/vm/governance.go | 2 |
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) |