Skip to content

Commit

Permalink
Update pm/recipient.go
Browse files Browse the repository at this point in the history
Co-authored-by: Yondon Fu <[email protected]>
  • Loading branch information
cyberj0g and yondonfu authored Jan 13, 2023
1 parent d5a364f commit 734de92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pm/recipient.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ func (r *recipient) updateSenderNonce(rand *big.Int, ticket *Ticket) error {
}{make(map[uint32]byte), ticket.ParamsExpirationBlock}
}
// check nonce map size
if len(r.senderNonces[randStr].nonceSeen) > maxSenderNonces-1 {
if len(r.senderNonces[randStr].nonceSeen) >= maxSenderNonces {
return errors.Errorf("invalid ticket senderNonce: too many values sender=%v nonce=%v", ticket.Sender.Hex(), ticket.SenderNonce)
}
// add new nonce
Expand Down

0 comments on commit 734de92

Please sign in to comment.