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

Fix for ProRegTx transaction conflict #1124

Merged
merged 4 commits into from
Jan 12, 2022
Merged

Fix for ProRegTx transaction conflict #1124

merged 4 commits into from
Jan 12, 2022

Conversation

psolstice
Copy link
Contributor

@psolstice psolstice commented Jan 12, 2022

PR intention

In rare circumstances node may behave incorrectly when certain types of transaction are in the same block

Code changes brief

Reject blocks with a conflict of

  1. ProRegTx transaction having a collateral in its vout (one produced by protx register_fund)
  2. transaction spending this collateral

When mining don't allow conflicting transactions into the same block

@reubenyap reubenyap merged commit 2e2c2ff into master Jan 12, 2022
@reubenyap reubenyap deleted the mn-fix branch January 12, 2022 10:45
AaronFeickert pushed a commit to AaronFeickert/firo that referenced this pull request Jan 25, 2022
* Don't allow collateral spend in same block as proreg tx

* Fix to MN check condition

* Don't let miner include ProRegTx and transaction spending collateral into one block

* Version bump
levonpetrosyan93 pushed a commit that referenced this pull request May 17, 2023
* Don't allow collateral spend in same block as proreg tx

* Fix to MN check condition

* Don't let miner include ProRegTx and transaction spending collateral into one block

* Version bump
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.

3 participants