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

Method ToArray

p2pserver/message/types/consensus_payload.go:65–67  ·  view source on GitHub ↗

serialize the consensus payload

()

Source from the content-addressed store, hash-verified

63
64//serialize the consensus payload
65func (this *ConsensusPayload) ToArray() []byte {
66 return common.SerializeToBytes(this)
67}
68
69//return inventory type
70func (this *ConsensusPayload) InventoryType() common.InventoryType {

Callers

nothing calls this directly

Calls 1

SerializeToBytesFunction · 0.92

Tested by

no test coverage detected