diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-10-23 14:13:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-23 14:13:58 +0800 |
commit | 50e7b0fcb7fd78218be68f32f818713e6933a9e8 (patch) | |
tree | fa94e72569a31fb1b22472b62f94697f23d834db /core/interfaces.go | |
parent | e909644bdb92ea827c0f5b0a850bce0217d02e08 (diff) | |
download | tangerine-consensus-50e7b0fcb7fd78218be68f32f818713e6933a9e8.tar tangerine-consensus-50e7b0fcb7fd78218be68f32f818713e6933a9e8.tar.gz tangerine-consensus-50e7b0fcb7fd78218be68f32f818713e6933a9e8.tar.bz2 tangerine-consensus-50e7b0fcb7fd78218be68f32f818713e6933a9e8.tar.lz tangerine-consensus-50e7b0fcb7fd78218be68f32f818713e6933a9e8.tar.xz tangerine-consensus-50e7b0fcb7fd78218be68f32f818713e6933a9e8.tar.zst tangerine-consensus-50e7b0fcb7fd78218be68f32f818713e6933a9e8.zip |
core: add round parameter to ProposeCRS method (#244)
Since all DKG set members may ProposeCRS, but only one will get through,
we need to be able to tell which round the CRS is intended for in order
to skip CRS submission of the same round.
Also this commit add check to make sure we have enough master public key
when initializing DKGGroupPublicKey.
Diffstat (limited to 'core/interfaces.go')
-rw-r--r-- | core/interfaces.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/interfaces.go b/core/interfaces.go index 97ab0a3..7b985cf 100644 --- a/core/interfaces.go +++ b/core/interfaces.go @@ -97,7 +97,7 @@ type Governance interface { CRS(round uint64) common.Hash // Propose a CRS of round. - ProposeCRS(signedCRS []byte) + ProposeCRS(round uint64, signedCRS []byte) // NodeSet returns the node set at a given round. // Return the genesis node set if round == 0. |