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

blockmanager: handle txs in invalid blocks #1430

Merged
merged 1 commit into from
Aug 31, 2018

Conversation

matheusd
Copy link
Member

Current code results in transactions from invalidated blocks being
removed from the mempool instead of remaining there to be mined in a
future block.

The new version ensures that transactions are only removed once they
are in a block voted as valid.

This only applies to regular transactions, since stake transactions are
not affected by the validity bits.

Original fix provided by @davecgh

Current code results in transactions from invalidated blocks being
removed from the mempool instead of remaining there to be mined in a
future block.

The new version ensures that transactions are *only* removed once they
are in a block voted as valid.

This only applies to regular transactions, since stake transactions are
not affected by the validity bits.
Copy link
Member

@dajohi dajohi left a comment

Choose a reason for hiding this comment

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

testnet3 miner ok

@davecgh davecgh merged commit e21c6b6 into decred:master Aug 31, 2018
@matheusd matheusd deleted the fix-mempool-block-invalidation branch August 31, 2018 11:21
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