forked from monero-project/monero
-
Notifications
You must be signed in to change notification settings - Fork 120
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
transaction generated for stake unlock #1364
Open
darcys22
wants to merge
6
commits into
oxen-io:dev
Choose a base branch
from
darcys22:1351-failed-unlock-requests
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jagerman
reviewed
Dec 18, 2020
jagerman
reviewed
Dec 18, 2020
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.
A couple of additions that would be useful here:
- a constant unlock burned fee added to
cryptonote_config.h
that gets added to the TX here, beginning if height indicates HF17+, if that constant is set to some amount > 0. For now we can probably just set it to some small amount (say 0.5 LOKI). - enforcement of an output + required burn amount when processing an unlock tx. If the tx has no output, or has a burn amount too low, we should ignore the unlock details in the tx. (Again, this should only kick in starting at the first HF17 block).
darcys22
force-pushed
the
1351-failed-unlock-requests
branch
from
January 12, 2021 03:58
20358c3
to
b549cd6
Compare
Have updated with the comments, few notes:
|
darcys22
force-pushed
the
1351-failed-unlock-requests
branch
from
March 1, 2021 03:28
b549cd6
to
3652ee7
Compare
darcys22
force-pushed
the
1351-failed-unlock-requests
branch
from
April 6, 2021 06:08
b268615
to
7d2159a
Compare
I think we should hold off on merging this PR until post-HF. It really is something that goes along with oxen-io/oxen-improvement-proposals#27 which is slated for the next PR. |
darcys22
force-pushed
the
1351-failed-unlock-requests
branch
from
August 23, 2021 03:29
b69f1fa
to
8d4623e
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Addressing #1351
So I've modified the unlock transaction to include a transaction sent to the users own address.
Attempting to resolve the issue using the second option:
Require that unlock txes have an output, and thus also a fee. Thus an unlock would now have 1-output back into the originating wallet, which would make the wallet see it.
However I am also of the opinion that the 3rd option of adding a burned amount to each stake unlock is a good idea.
Could I get some feedback on if this is the right path to be taking to generate an output for the unlock stake transaction?