Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberj0g committed Jan 13, 2023
1 parent fc436be commit c6237ae
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]bool), 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 c6237ae

Please sign in to comment.