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

Implement remote-staking output validation in coinbase transactions #692

Merged
merged 5 commits into from
Mar 1, 2019

Conversation

Nizametdinov
Copy link
Member

This PR implements the following consensus rule:

If a coinbase transaction contains an input with a remote-staking scriptPubKey then at least the same amount MUST be sent back to the same scriptPubKey.

@Nizametdinov Nizametdinov requested a review from a team February 26, 2019 21:15
@Nizametdinov Nizametdinov self-assigned this Feb 27, 2019
Signed-off-by: Azat Nizametdinov <azat@thirdhash.com>
Signed-off-by: Azat Nizametdinov <azat@thirdhash.com>
Signed-off-by: Azat Nizametdinov <azat@thirdhash.com>
Signed-off-by: Azat Nizametdinov <azat@thirdhash.com>
Signed-off-by: Azat Nizametdinov <azat@thirdhash.com>
@Nizametdinov Nizametdinov force-pushed the remote-staking-validation branch from bb88214 to deb38f9 Compare March 1, 2019 10:33
Copy link
Member

@scravy scravy left a comment

Choose a reason for hiding this comment

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

utACK deb38f9

This looks good to me, it faithfully implements the rule (as per UIP15):

If a coinbase transaction contains an input with a remote-staking scriptPubKey then at least the same amount MUST be sent back to the same scriptPubKey.

I am wondering though about one thing (which does not prevent this form merging, just, if I did not overlook something, something which might needed to be added?), see comment inline.

Copy link
Member

@cmihai cmihai left a comment

Choose a reason for hiding this comment

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

utACK deb38f9. Looks good and straightforward.

Copy link
Member

@kostyantyn kostyantyn left a comment

Choose a reason for hiding this comment

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

utACK deb38f9

@Nizametdinov Nizametdinov merged commit 6b64e9c into dtr-org:master Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants