aboutsummaryrefslogtreecommitdiffstats
path: root/dex/network.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-09-26 11:00:04 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:23:38 +0800
commit593c5d4c9efa80916cc4819797bfc42348a43502 (patch)
treeaa76753d1422ac664e9dd62b149458fdd294ada2 /dex/network.go
parent21cbe9d5b1630be351329a5715fd599030a00122 (diff)
downloadgo-tangerine-593c5d4c9efa80916cc4819797bfc42348a43502.tar.gz
go-tangerine-593c5d4c9efa80916cc4819797bfc42348a43502.tar.zst
go-tangerine-593c5d4c9efa80916cc4819797bfc42348a43502.zip
dex: update consensus core interface
Diffstat (limited to 'dex/network.go')
-rw-r--r--dex/network.go19
1 files changed, 12 insertions, 7 deletions
diff --git a/dex/network.go b/dex/network.go
index a12e357eb..a186921a4 100644
--- a/dex/network.go
+++ b/dex/network.go
@@ -1,6 +1,9 @@
package dex
-import "github.com/dexon-foundation/dexon-consensus-core/core/types"
+import (
+ "github.com/dexon-foundation/dexon-consensus-core/core/crypto"
+ "github.com/dexon-foundation/dexon-consensus-core/core/types"
+)
type DexconNetwork struct {
receiveChan chan interface{}
@@ -20,18 +23,20 @@ func (n *DexconNetwork) BroadcastVote(vote *types.Vote) {
func (n *DexconNetwork) BroadcastBlock(block *types.Block) {
}
-// BroadcastWitnessAck broadcasts witnessAck to all nodes in DEXON network.
-func (n *DexconNetwork) BroadcastWitnessAck(witnessAck *types.WitnessAck) {
-}
-
// SendDKGPrivateShare sends PrivateShare to a DKG participant.
func (n *DexconNetwork) SendDKGPrivateShare(
- recv types.NodeID, prvShare *types.DKGPrivateShare) {
+ pub crypto.PublicKey, prvShare *types.DKGPrivateShare) {
}
// BroadcastDKGPrivateShare broadcasts PrivateShare to all DKG participants.
func (n *DexconNetwork) BroadcastDKGPrivateShare(
- prvShare *types.DKGPrivateShare) {
+ prvShare *types.DKGPrivateShare) {
+}
+
+// BroadcastDKGPartialSignature broadcasts partialSignature to all
+// DKG participants.
+func (n *DexconNetwork) BroadcastDKGPartialSignature(
+ psig *types.DKGPartialSignature) {
}
// ReceiveChan returns a channel to receive messages from DEXON network.