aboutsummaryrefslogtreecommitdiffstats
path: root/simulation/network.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-09-17 17:43:56 +0800
committerGitHub <noreply@github.com>2018-09-17 17:43:56 +0800
commitcbf0012603deb6d2b8c257c079de98792f7b84cf (patch)
tree10294191481d4b7516ef0bc089bca1ebf1aa705c /simulation/network.go
parent874c4c599a80b9c6f9c085c216be5fd6492cd2c2 (diff)
downloaddexon-consensus-cbf0012603deb6d2b8c257c079de98792f7b84cf.tar
dexon-consensus-cbf0012603deb6d2b8c257c079de98792f7b84cf.tar.gz
dexon-consensus-cbf0012603deb6d2b8c257c079de98792f7b84cf.tar.bz2
dexon-consensus-cbf0012603deb6d2b8c257c079de98792f7b84cf.tar.lz
dexon-consensus-cbf0012603deb6d2b8c257c079de98792f7b84cf.tar.xz
dexon-consensus-cbf0012603deb6d2b8c257c079de98792f7b84cf.tar.zst
dexon-consensus-cbf0012603deb6d2b8c257c079de98792f7b84cf.zip
core: DKG interface (#108)
Diffstat (limited to 'simulation/network.go')
-rw-r--r--simulation/network.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/simulation/network.go b/simulation/network.go
index 90f3aec..89b4f59 100644
--- a/simulation/network.go
+++ b/simulation/network.go
@@ -138,6 +138,14 @@ func (n *network) BroadcastNotaryAck(notaryAck *types.NotaryAck) {
}
}
+// SendDKGPrivateShare implements core.Network interface.
+func (n *network) SendDKGPrivateShare(
+ recv types.ValidatorID, prvShare *types.DKGPrivateShare) {
+ if err := n.trans.Send(recv, prvShare); err != nil {
+ panic(err)
+ }
+}
+
// ReceiveChan implements core.Network interface.
func (n *network) ReceiveChan() <-chan interface{} {
return n.toConsensus