Skip to content
Snippets Groups Projects
Commit bd179f5f authored by Jake Taylor's avatar Jake Taylor
Browse files

modify marshal

parent fcaf5952
No related branches found
No related tags found
No related merge requests found
...@@ -47,9 +47,9 @@ func GetFingerprint(msg *GossipMsg) Fingerprint { ...@@ -47,9 +47,9 @@ func GetFingerprint(msg *GossipMsg) Fingerprint {
} }
// Returns the data of a GossipMsg excluding the Signature as bytes // Returns the data of a GossipMsg excluding the Signature as bytes
func (m *GossipMsg) Marshal() []byte { func Marshal(msg *GossipMsg) []byte {
data := append([]byte(m.Tag), m.Origin...) data := append([]byte(msg.Tag), msg.Origin...)
return append(data, m.Payload...) return append(data, msg.Payload...)
} }
// Gossip-related configuration flag // Gossip-related configuration flag
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment