From fb27745f2ca4eaf66f53f48740cbd148ee15bbdf Mon Sep 17 00:00:00 2001 From: Mission Liao Date: Tue, 2 Oct 2018 15:45:29 +0800 Subject: core: replace reliable-broadcast with shard (#159) --- core/interfaces.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'core/interfaces.go') 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. -- cgit v1.2.3