Deserialize message payload
(source *comm.ZeroCopySource)
| 44 | |
| 45 | //Deserialize message payload |
| 46 | func (this *VerACK) Deserialization(source *comm.ZeroCopySource) error { |
| 47 | var irregular, eof bool |
| 48 | this.isConsensus, irregular, eof = source.NextBool() |
| 49 | if eof { |
| 50 | return io.ErrUnexpectedEOF |
| 51 | } |
| 52 | if irregular { |
| 53 | return comm.ErrIrregularData |
| 54 | } |
| 55 | |
| 56 | return nil |
| 57 | } |