Skip to content

Conversation

jtimon
Copy link
Contributor

@jtimon jtimon commented Apr 20, 2015

Removes most of the undesired dependencies from the consensus pow functions.
CBlockIndex is still used, but only its attributes and none of the methods.
This is part of #5995.
It also relates with some miner PRs (like #4793 or #5957) since this will stop those log messages in regtest, allowing those PRs to use CheckProofOfWork directly in ScanHash. I believe that's something that at least @sipa and @21E14 will like.

Questions:

-Is it worth it to create miner::GetNextWorkRequiredLog() ?
-Should CheckProofOfWork() receive a reference to a CValidationState to be able to give the specific reason when it returns false?

@jtimon
Copy link
Contributor Author

jtimon commented Apr 22, 2015

Closing for now

@jtimon jtimon closed this Apr 22, 2015
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant