-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
getblock
returns slightly different difficulty than bitcoin core
#414
Comments
That's just a human readable ratio of max pow limit over the bits field. We've limited it to a precision of 2 whereas they limit it to 8. The You'll notice that the various block explorers show a different precision after the decimal as well: I'll leave this open for a bit to give others a chance to comment, but this can be closed in my opinion. |
Two digits sound reasonable to me, but again, we are not using this field. Note that the two explorers you've mentioned only show a limited precision on their website. Both APIs report the exact same value as bitcoin core. (which is most likely running in the background, I guess) |
Fair enough. It's a simple change and doesn't hurt anything to provide the extra precision. I'll submit a PR in a few for it. |
This commit increases the precision of the difficulty field of the getblock RPC to 8 to match Bitcoin Core. Closes btcsuite#414.
Confirmed working here, thanks. |
Not sure if relevant, again just reporting differences.
bitcoin core:
btcd:
The text was updated successfully, but these errors were encountered: