diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-10-09 11:59:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-09 11:59:19 +0800 |
commit | db07d005e2e5a9208620a8d0e5fcaedeaa6ed644 (patch) | |
tree | 860c7a1c2f5d30296f66b07ed4e59117eb265eb7 /core/interfaces.go | |
parent | 9267d50de25ddf0f280eee797e2030ea989294e4 (diff) | |
download | dexon-consensus-db07d005e2e5a9208620a8d0e5fcaedeaa6ed644.tar dexon-consensus-db07d005e2e5a9208620a8d0e5fcaedeaa6ed644.tar.gz dexon-consensus-db07d005e2e5a9208620a8d0e5fcaedeaa6ed644.tar.bz2 dexon-consensus-db07d005e2e5a9208620a8d0e5fcaedeaa6ed644.tar.lz dexon-consensus-db07d005e2e5a9208620a8d0e5fcaedeaa6ed644.tar.xz dexon-consensus-db07d005e2e5a9208620a8d0e5fcaedeaa6ed644.tar.zst dexon-consensus-db07d005e2e5a9208620a8d0e5fcaedeaa6ed644.zip |
core: Add round to DKG methods in gov. Change network interface name (#185)
Diffstat (limited to 'core/interfaces.go')
-rw-r--r-- | core/interfaces.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/interfaces.go b/core/interfaces.go index 9232251..f4a6cd0 100644 --- a/core/interfaces.go +++ b/core/interfaces.go @@ -64,8 +64,8 @@ type Network interface { // BroadcastBlock broadcasts block to all nodes in DEXON network. BroadcastBlock(block *types.Block) - // BroadcastRandomnessRequest broadcasts rand request to DKG set. - BroadcastRandomnessRequest(randRequest *types.AgreementResult) + // BroadcastAgreementResult broadcasts agreement result to DKG set. + BroadcastAgreementResult(randRequest *types.AgreementResult) // BroadcastRandomnessResult broadcasts rand request to Notary set. BroadcastRandomnessResult(randResult *types.BlockRandomnessResult) @@ -106,19 +106,19 @@ type Governance interface { //// DKG-related methods. // AddDKGComplaint adds a DKGComplaint. - AddDKGComplaint(complaint *types.DKGComplaint) + AddDKGComplaint(round uint64, complaint *types.DKGComplaint) // DKGComplaints gets all the DKGComplaints of round. DKGComplaints(round uint64) []*types.DKGComplaint // AddDKGMasterPublicKey adds a DKGMasterPublicKey. - AddDKGMasterPublicKey(masterPublicKey *types.DKGMasterPublicKey) + AddDKGMasterPublicKey(round uint64, masterPublicKey *types.DKGMasterPublicKey) // DKGMasterPublicKeys gets all the DKGMasterPublicKey of round. DKGMasterPublicKeys(round uint64) []*types.DKGMasterPublicKey // AddDKGFinalize adds a DKG finalize message. - AddDKGFinalize(final *types.DKGFinalize) + AddDKGFinalize(round uint64, final *types.DKGFinalize) // IsDKGFinal checks if DKG is final. IsDKGFinal(round uint64) bool |