(data []byte)
| 432 | } |
| 433 | |
| 434 | func (self *Server) broadcastToAll(data []byte) error { |
| 435 | msg := &p2pmsg.ConsensusPayload{ |
| 436 | Data: data, |
| 437 | Owner: self.account.PublicKey, |
| 438 | } |
| 439 | |
| 440 | sink := common.NewZeroCopySink(nil) |
| 441 | msg.SerializationUnsigned(sink) |
| 442 | msg.Signature, _ = signature.Sign(self.account, sink.Bytes()) |
| 443 | |
| 444 | self.p2p.Broadcast(msg) |
| 445 | return nil |
| 446 | } |
no test coverage detected