diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-10-02 15:45:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-02 15:45:29 +0800 |
commit | fb27745f2ca4eaf66f53f48740cbd148ee15bbdf (patch) | |
tree | 1b706c5a93a4f09f27d2bc729cf55c5d4f0b5aaa /core/interfaces.go | |
parent | d7f6db871180b53548aed6a5450e1c5879c90b04 (diff) | |
download | tangerine-consensus-fb27745f2ca4eaf66f53f48740cbd148ee15bbdf.tar tangerine-consensus-fb27745f2ca4eaf66f53f48740cbd148ee15bbdf.tar.gz tangerine-consensus-fb27745f2ca4eaf66f53f48740cbd148ee15bbdf.tar.bz2 tangerine-consensus-fb27745f2ca4eaf66f53f48740cbd148ee15bbdf.tar.lz tangerine-consensus-fb27745f2ca4eaf66f53f48740cbd148ee15bbdf.tar.xz tangerine-consensus-fb27745f2ca4eaf66f53f48740cbd148ee15bbdf.tar.zst tangerine-consensus-fb27745f2ca4eaf66f53f48740cbd148ee15bbdf.zip |
core: replace reliable-broadcast with shard (#159)
Diffstat (limited to 'core/interfaces.go')
-rw-r--r-- | core/interfaces.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/interfaces.go b/core/interfaces.go index d1868a5..fa593eb 100644 --- a/core/interfaces.go +++ b/core/interfaces.go @@ -79,27 +79,27 @@ type Network interface { // Note that there are a lot more methods in the governance contract, that this // interface only define those that are required to run the consensus algorithm. type Governance interface { - // GetConfiguration returns the configuration at a given round. + // Configuration returns the configuration at a given round. // Return the genesis configuration if round == 0. - GetConfiguration(round uint64) *types.Config + Configuration(round uint64) *types.Config - // GetCRS returns the CRS for a given round. + // CRS returns the CRS for a given round. // Return the genesis CRS if round == 0. - GetCRS(round uint64) common.Hash + CRS(round uint64) common.Hash // Propose a CRS of round. ProposeCRS(round uint64, signedCRS []byte) - // GetNodeSet returns the node set at a given round. + // NodeSet returns the node set at a given round. // Return the genesis node set if round == 0. - GetNodeSet(round uint64) []crypto.PublicKey + NodeSet(round uint64) []crypto.PublicKey //// DKG-related methods. // AddDKGComplaint adds a DKGComplaint. AddDKGComplaint(complaint *types.DKGComplaint) - // GetDKGComplaints gets all the DKGComplaints of round. + // DKGComplaints gets all the DKGComplaints of round. DKGComplaints(round uint64) []*types.DKGComplaint // AddDKGMasterPublicKey adds a DKGMasterPublicKey. |