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

Properly handle attempting reorganization to an eligible block #117

Merged
merged 1 commit into from
Apr 14, 2016

Conversation

cjepson
Copy link
Contributor

@cjepson cjepson commented Apr 14, 2016

A continue statement was missing which could cause an issue when
attempting to iterate through different eligible blocks on the chain
tip to mine off of. The mining code was also amended to make it return
newly generated work later on in the code if for some reason not
enough voters were found, instead of just returning a nil template.

A continue statement was missing which could cause an issue when
attempting to iterate through different eligible blocks on the chain
tip to mine off of. The mining code was also amended to make it return
newly generated work later on in the code if for some reason not
enough voters were found, instead of just returning a nil template.
@jolan
Copy link
Contributor

jolan commented Apr 14, 2016

tACK

1 similar comment
@alexlyp
Copy link
Member

alexlyp commented Apr 14, 2016

tACK

@jcvernaleo
Copy link
Member

Code definitely looks correct. Looks good on testnet and simnet (or as good as simnet ever looks on my machine for long runs).
OK

@jcvernaleo jcvernaleo merged commit b75a280 into decred:master Apr 14, 2016
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.

4 participants