diff options
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 d14f07e..938d785 100644 --- a/simulation/network.go +++ b/simulation/network.go @@ -153,6 +153,14 @@ func (n *network) SendDKGPrivateShare( } } +// BroadcastDKGPrivateShare implements core.Network interface. +func (n *network) BroadcastDKGPrivateShare( + prvShare *types.DKGPrivateShare) { + if err := n.trans.Broadcast(prvShare); err != nil { + panic(err) + } +} + // ReceiveChan implements core.Network interface. func (n *network) ReceiveChan() <-chan interface{} { return n.toConsensus |