Skip to content

Commit

Permalink
Merge pull request #212 from kcalvinalvin/2024-11-07-msgutreexotx-use…
Browse files Browse the repository at this point in the history
…-compact-serialization

wire: use compact leafdata serialization for msgutreexotx
  • Loading branch information
kcalvinalvin authored Nov 7, 2024
2 parents a48cdc4 + 215d5c8 commit 77f1b36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wire/msgutreexotx.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (msg *MsgUtreexoTx) BtcDecode(r io.Reader, pver uint32, enc MessageEncoding
// Decode the utreexo data.
ud := new(UData)
ud.LeafDatas = nil
err = ud.Deserialize(r)
err = ud.DeserializeCompact(r)
if err != nil {
return err
}
Expand Down Expand Up @@ -89,7 +89,7 @@ func (msg *MsgUtreexoTx) BtcEncode(w io.Writer, pver uint32, enc MessageEncoding
}

// Encode the utreexo data.
return msg.UData.Serialize(w)
return msg.UData.SerializeCompact(w)
}

// Command returns the protocol command string for the message. This is part
Expand Down

0 comments on commit 77f1b36

Please sign in to comment.