Skip to content

Commit

Permalink
wire-mix: add max count to an error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick committed Nov 21, 2023
1 parent e76a884 commit a8eab2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wire/msgmixcm.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ func (msg *MsgMixCM) writeMessageNoSignature(op string, w io.Writer, pver uint32

count := len(msg.SeenDCs)
if count > MaxPrevMixMsgs {
msg := fmt.Sprintf("too many previous referenced messages [%v]", count)
msg := fmt.Sprintf("too many previous referenced messages [count %v, max %v]",
count, MaxPrevMixMsgs)
return messageError(op, ErrTooManyPrevMixMsgs, msg)
}

Expand Down

0 comments on commit a8eab2d

Please sign in to comment.