Serialize message payload
(sink *common.ZeroCopySink)
| 36 | |
| 37 | //Serialize message payload |
| 38 | func (this *Block) Serialization(sink *common.ZeroCopySink) { |
| 39 | this.Blk.Serialization(sink) |
| 40 | sink.WriteHash(this.MerkleRoot) |
| 41 | } |
| 42 | |
| 43 | func (this *Block) CmdType() string { |
| 44 | return comm.BLOCK_TYPE |
nothing calls this directly
no test coverage detected