(data []byte)
| 111 | } |
| 112 | |
| 113 | func (msg *blockProposalMsg) UnmarshalJSON(data []byte) error { |
| 114 | blk := &Block{} |
| 115 | if err := blk.Deserialize(data); err != nil { |
| 116 | return err |
| 117 | } |
| 118 | |
| 119 | msg.Block = blk |
| 120 | return nil |
| 121 | } |
| 122 | |
| 123 | func (msg *blockProposalMsg) MarshalJSON() ([]byte, error) { |
| 124 | return msg.Block.Serialize(), nil |
no test coverage detected