fix: DecodeMessage needs to be by ref

This commit is contained in:
Derrick Hammer 2024-01-08 08:21:18 -05:00
parent a5ac5af154
commit b3a6d6ddcc
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ func (h HandshakeDone) HandleMessage(node interfaces.Node, peer net.Peer, verify
return nil
}
func (h HandshakeDone) DecodeMessage(dec *msgpack.Decoder) error {
func (h *HandshakeDone) DecodeMessage(dec *msgpack.Decoder) error {
challenge, err := dec.DecodeBytes()
if err != nil {
return err