Skip to content

On failed and reverted redemption, allow reuse of nonce - #59

Merged
jasonklein merged 1 commit into
developfrom
benjaminbollen/gh56/revertnonce
Dec 12, 2017
Merged

On failed and reverted redemption, allow reuse of nonce#59
jasonklein merged 1 commit into
developfrom
benjaminbollen/gh56/revertnonce

Conversation

@benjaminbollen

Copy link
Copy Markdown
Contributor

Fixes #56

Original proposal was to revert back the nonce on the utility chain (as monotonic nonce is kept on value chain); but the more elegant solution is to loosen the requirement on redeem and redeemSTP on OpenSTUtility;

as such a redeemer could redeem multiple times with the same nonce, but only one could be used to unstake, and as a result the redeemer only incurs a cost of handing over utility tokens on redeeming multiple times;

however if a redemption attempt fails, and is reverted, the redeemer can reuse the same nonce to retry the redemption.

addressed unit tests for this change in requirements.

…ts are incurred when reusing nonce, and monotonic nonce is kept on OpenSTValue; allows for retry upon failed and reverted redemption
@benjaminbollen
benjaminbollen force-pushed the benjaminbollen/gh56/revertnonce branch from edd747d to a324200 Compare December 12, 2017 15:17
@jasonklein jasonklein self-assigned this Dec 12, 2017

@jasonklein jasonklein left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM 🚀

@jasonklein
jasonklein merged commit 78d3218 into develop Dec 12, 2017
@benjaminbollen
benjaminbollen deleted the benjaminbollen/gh56/revertnonce branch December 12, 2017 17:43
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.

Reversion: nonce revert on utility

2 participants