Correct a couple of func prefixes in err messages.

This commit is contained in:
Dave Collins 2013-05-10 11:31:06 -05:00
parent d33fdb2c3c
commit e41a3bcaf3

View file

@ -27,7 +27,7 @@ func (msg *MsgInv) AddInvVect(iv *InvVect) error {
if len(msg.InvList)+1 > MaxInvPerMsg { if len(msg.InvList)+1 > MaxInvPerMsg {
str := fmt.Sprintf("too many invvect in message [max %v]", str := fmt.Sprintf("too many invvect in message [max %v]",
MaxInvPerMsg) MaxInvPerMsg)
return messageError("MsgInv.AddAddress", str) return messageError("MsgInv.AddInvVect", str)
} }
msg.InvList = append(msg.InvList, iv) msg.InvList = append(msg.InvList, iv)
@ -67,7 +67,7 @@ func (msg *MsgInv) BtcEncode(w io.Writer, pver uint32) error {
count := len(msg.InvList) count := len(msg.InvList)
if count > MaxInvPerMsg { if count > MaxInvPerMsg {
str := fmt.Sprintf("too many invvect in message [%v]", count) 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)) err := writeVarInt(w, pver, uint64(count))