diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-09-17 17:43:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-17 17:43:56 +0800 |
commit | cbf0012603deb6d2b8c257c079de98792f7b84cf (patch) | |
tree | 10294191481d4b7516ef0bc089bca1ebf1aa705c /simulation/network.go | |
parent | 874c4c599a80b9c6f9c085c216be5fd6492cd2c2 (diff) | |
download | dexon-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.go | 8 |
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 |