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: inconsistent txFirstSpend #385

Merged
merged 1 commit into from
Apr 2, 2020

Conversation

maltemoeser
Copy link
Member

@maltemoeser maltemoeser commented Mar 30, 2020

Fixes a rare situation where, due to the parallel processing of transactions, it can happen that an input script is serialized as a wrapped script in a later transaction before it is serialized as a normal input script in a previous transaction. This is a simpler fix than moving the input processing of wrapped scripts to the last stage of the processing pipeline.

I'll double-check this with the new integrity check tool one more time before merging.

(shouldn't have #383, but made it easier for now to create the PR)

@maltemoeser maltemoeser changed the title Fix/inconsistent first spent fix: inconsistent txFirstSpend Mar 30, 2020
@maltemoeser maltemoeser marked this pull request as ready for review April 2, 2020 18:08
@maltemoeser
Copy link
Member Author

Parsing integrity comparison: https://gist.github.com/maltemoeser/fa67ab38647cf3df5285e56a666889c1

Fixes a rare situation where, due to the parallel processing of transactions, it can happen that an input script is serialized as a wrapped script in a later transaction before it is serialized as a normal input script in a previous transaction. This is a simpler fix than moving the input processing of wrapped scripts to the last stage of the processing pipeline.

Reparsing the chain is recommended.
@maltemoeser maltemoeser force-pushed the fix/inconsistent-first-spent branch from fc437f9 to 9f860d6 Compare April 2, 2020 18:12
@maltemoeser
Copy link
Member Author

Rebased on top of v0.6

@maltemoeser maltemoeser merged commit 0a89fc1 into citp:v0.6 Apr 2, 2020
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.

1 participant