Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reject reused or old timestamps. #215

Merged
merged 2 commits into from
Dec 27, 2020
Merged

Conversation

jholdstock
Copy link
Member

Closes #14

webapi/errors.go Outdated
@@ -107,6 +110,8 @@ func (e apiError) defaultMessage() string {
return "fee transaction could not be broadcast"
case errCannotBroadcastFeeUnknownOutputs:
return "fee transaction could not be broadcast due to unknown outputs"
case errInvalidTimestamp:
return "request timestamp is not newer than all previous requests"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s / request timestamp is not newer than all previous requests / request timestamp is older than the last request

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, your suggestion isnt quite accurate, but I take your point. I will update the message

@dajohi dajohi merged commit fe286a5 into decred:master Dec 27, 2020
@jholdstock jholdstock deleted the timestamp branch January 25, 2022 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

timestamps in requests
3 participants