diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-10-02 14:06:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-02 14:06:25 +0800 |
commit | d7f6db871180b53548aed6a5450e1c5879c90b04 (patch) | |
tree | c70b9ef766c3b649c8ca3ac93d79f6f1794be3ce /simulation | |
parent | 658662d42d30c58e4f3951f5c1e99688de295397 (diff) | |
download | tangerine-consensus-d7f6db871180b53548aed6a5450e1c5879c90b04.tar tangerine-consensus-d7f6db871180b53548aed6a5450e1c5879c90b04.tar.gz tangerine-consensus-d7f6db871180b53548aed6a5450e1c5879c90b04.tar.bz2 tangerine-consensus-d7f6db871180b53548aed6a5450e1c5879c90b04.tar.lz tangerine-consensus-d7f6db871180b53548aed6a5450e1c5879c90b04.tar.xz tangerine-consensus-d7f6db871180b53548aed6a5450e1c5879c90b04.tar.zst tangerine-consensus-d7f6db871180b53548aed6a5450e1c5879c90b04.zip |
core: remove ProposeThresholdSignature/GetThresholdSignature (#158)
Also rename the argument name of ProposeCRS.
Diffstat (limited to 'simulation')
-rw-r--r-- | simulation/governance.go | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/simulation/governance.go b/simulation/governance.go index 21bf35a..8b6c3e5 100644 --- a/simulation/governance.go +++ b/simulation/governance.go @@ -113,8 +113,8 @@ func (g *simGovernance) GetCRS(round uint64) common.Hash { } // ProposeCRS proposes a CRS of round. -func (g *simGovernance) ProposeCRS(round uint64, crs []byte) { - g.crs[round] = crypto.Keccak256Hash(crs) +func (g *simGovernance) ProposeCRS(round uint64, signedCRS []byte) { + g.crs[round] = crypto.Keccak256Hash(signedCRS) } // addNode add a new node into the simulated governance contract. @@ -133,19 +133,6 @@ func (g *simGovernance) addNode(pubKey crypto.PublicKey) { g.nodeSet[nID] = pubKey } -// ProposeThresholdSignature porposes a ThresholdSignature of round. -func (g *simGovernance) ProposeThresholdSignature( - round uint64, signature crypto.Signature) { - g.tsig[round] = signature -} - -// GetThresholdSignature gets a ThresholdSignature of round. -func (g *simGovernance) GetThresholdSignature(round uint64) ( - sig crypto.Signature, exist bool) { - sig, exist = g.tsig[round] - return -} - // AddDKGComplaint adds a DKGComplaint. func (g *simGovernance) AddDKGComplaint(complaint *types.DKGComplaint) { // TODO(jimmy-dexon): check if the input is valid. |