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

Fixed annminer bug/feature that would prevent announcements with lower height than previous batch from being sent to handler #60

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

UCIS
Copy link
Contributor

@UCIS UCIS commented Feb 24, 2023

This patch removes an old feature in the announcement miner that would drop announcement batches with a height lower than the previous batch sent to that same handler. This feature prevents mining pools from dynamically altering the mineOld setting as a way to optimize their announcement set, possibly complicating recovery from a chain stall when insufficient mature announcements are available.

A quick test did not show side effects other than the intended behavior. Since all mining threads are halted for mining work changes, and the announcement are placed directly in a queue in the miner callback, there should be no reordering issues between miner threads, out-of-order announcements would only appear as a result of changed mining instructions from the pool.

…r height than previous batch from being sent to handler
@UCIS UCIS changed the base branch from master to develop February 24, 2023 00:32
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