diff options
Diffstat (limited to 'simulation/network.go')
-rw-r--r-- | simulation/network.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/simulation/network.go b/simulation/network.go index 83c4daf..ce6ea65 100644 --- a/simulation/network.go +++ b/simulation/network.go @@ -131,9 +131,9 @@ func (n *network) BroadcastBlock(block *types.Block) { } } -// BroadcastNotaryAck implements core.Network interface. -func (n *network) BroadcastNotaryAck(notaryAck *types.NotaryAck) { - if err := n.trans.Broadcast(notaryAck); err != nil { +// BroadcastWitnessAck implements core.Network interface. +func (n *network) BroadcastWitnessAck(witnessAck *types.WitnessAck) { + if err := n.trans.Broadcast(witnessAck); err != nil { panic(err) } } @@ -188,7 +188,7 @@ func (n *network) run() { // to consensus or validator, that's the question. disp := func(e *test.TransportEnvelope) { switch e.Msg.(type) { - case *types.Block, *types.Vote, *types.NotaryAck, + case *types.Block, *types.Vote, *types.WitnessAck, *types.DKGPrivateShare, *types.DKGPartialSignature: n.toConsensus <- e.Msg default: |