-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feat: account seq #164
Feat: account seq #164
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted also to discuss if it makes sense to add the sequence number to all execute messages or only to the unstake
and withdraw
(which are the sensitive methods). I was updating the overlay and it felt weird that we only increase the sequence number on only 2 functions.
Also, we could remove the unregister
for whenever you withdraw and your funds are equal to zero. We could even unify the register and increase stake to simply stake(public_key, amount, memo
).
What are your opinions @gluax and @FranklinWaller ?
Motivation
We want to avoid replay attacks.
Explanation of Changes
Add a sequence number. And use it for some messages.
Testing
All tests still pass.
Related PRs and Issues
N/A