From e41a3bcaf34234b8d55fd8ceca29d9138268063f Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Fri, 10 May 2013 11:31:06 -0500 Subject: [PATCH] Correct a couple of func prefixes in err messages. --- msginv.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/msginv.go b/msginv.go index 8ec0c246..015f4a81 100644 --- a/msginv.go +++ b/msginv.go @@ -27,7 +27,7 @@ func (msg *MsgInv) AddInvVect(iv *InvVect) error { if len(msg.InvList)+1 > MaxInvPerMsg { str := fmt.Sprintf("too many invvect in message [max %v]", MaxInvPerMsg) - return messageError("MsgInv.AddAddress", str) + return messageError("MsgInv.AddInvVect", str) } msg.InvList = append(msg.InvList, iv) @@ -67,7 +67,7 @@ func (msg *MsgInv) BtcEncode(w io.Writer, pver uint32) error { count := len(msg.InvList) if count > MaxInvPerMsg { str := fmt.Sprintf("too many invvect in message [%v]", count) - return messageError("MsgInv.BtcDecode", str) + return messageError("MsgInv.BtcEncode", str) } err := writeVarInt(w, pver, uint64(count))