MCPcopy Create free account
hub / github.com/DNAProject/DNA / Deserialization

Method Deserialization

p2pserver/message/types/verack.go:46–57  ·  view source on GitHub ↗

Deserialize message payload

(source *comm.ZeroCopySource)

Source from the content-addressed store, hash-verified

44
45//Deserialize message payload
46func (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}

Callers

nothing calls this directly

Calls 1

NextBoolMethod · 0.80

Tested by

no test coverage detected