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

mining: Fix duplicate txns in the prio heap. #1108

Merged
merged 1 commit into from
Mar 3, 2018

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Mar 2, 2018

This prevents the ability for duplicate transactions to be added to the mining priority heap when a transaction spends multiple outputs from the same input transaction by converting the dependency tracking to use a map keyed by the transaction hash instead of a linked list.

Work towards #709.

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.

ok

@davecgh davecgh force-pushed the mining_duplicate_tx_prio_heap branch from 276e592 to d56ca2d Compare March 3, 2018 05:34
This prevents the ability for duplicate transactions to be added to the
mining priority heap when a transaction spends multiple outputs from the
same input transaction by converting the dependency tracking to use a
map keyed by the transaction hash instead of a linked list.
@davecgh davecgh force-pushed the mining_duplicate_tx_prio_heap branch from d56ca2d to 1f2ae2f Compare March 3, 2018 05:36
@davecgh davecgh merged commit 1f2ae2f into decred:master Mar 3, 2018
@davecgh davecgh deleted the mining_duplicate_tx_prio_heap branch March 3, 2018 05:55
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.

2 participants