pokt-network / pocket

Official implementation of the Pocket Network Protocol v1
https://pokt.network
MIT License
63 stars 33 forks source link

fix: zero value nonce is invalid #881

Closed bryanchriswhite closed 1 year ago

bryanchriswhite commented 1 year ago

Description

Because 0 is the zero (default) value for uint64, if it is valid to be used as a nonce, it becomes difficult to distinguish the scenario where sender did not set a nonce from one where they explicitly set it to 0.

I'm not confident whether the ability to make this distinction matters now or has the potential to later but was following a feeling.

Summary generated by Reviewpad on 11 Jul 23 11:56 UTC

This pull request includes the following changes:

Issue

N/A; observation made while working on #732.

Type of change

Please mark the relevant option(s):

List of changes

Testing

Required Checklist

If Applicable Checklist