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

Disable retargeting for regtest - option 1 #1273

Closed

Conversation

oscarguindzberg
Copy link
Contributor

@oscarguindzberg oscarguindzberg commented Jun 13, 2016

Retargeting is disabled on bitcoin core for regtest, but enabled on bitcoinj for regtest.

See https://github.com/bitcoin/bitcoin/blob/master/src/chainparams.cpp#L257
See https://github.com/bitcoin/bitcoin/blob/master/src/pow.cpp#L54

If you have a bitcoind running on regtest with more than 10k blocks, and use bitcoinj to sync with it, it will reject blocks starting on block 10,000.

I wrote 2 different solutions:

Solution 1: The way it is implemented on bitcoin core (this PR)
Solution 2: Simple solution (The other PR I created: #1274)

@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 71.716% when pulling 1f6049e on oscarguindzberg:noretargeting1 into f416dec on bitcoinj:master.

@schildbach
Copy link
Member

Closing in favour of #1274.

@schildbach schildbach closed this Jul 3, 2016
@oscarguindzberg oscarguindzberg deleted the noretargeting1 branch August 25, 2016 22:46
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.

None yet

3 participants