-
Notifications
You must be signed in to change notification settings - Fork 184
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
Regtest: "block target difficulty is higher than max" #255
Comments
Are you able to reproduce the same thing w/ simnet? IIRC, I think btcd will do difficulty retargets for regtest, while bitcoind never does. This is what historically led to the creation of simnet (which does the retargets). |
I think you're right. I can't reproduce with simnet and that's probably because I'm running neutrino against a bitcoind which, as you say, doesn't do retargets, as can be seen here: Shouldn't btcd/neutrino disable retargets for regtest as well? |
I created a pull request #256 that fixes the issue. |
|
Whenever I try to use neutrino in regtest mode, I run into this error:
There must be some flaw in the difficulty calculation logic here: https://github.com/lightninglabs/neutrino/blob/master/blockmanager.go#L2795-L2834
Related issue (but I think it belongs here): btcsuite/btcd#1819
The text was updated successfully, but these errors were encountered: