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

retargeting every 720 vs 2016 blocks? #2

Open
turnkit opened this issue Nov 13, 2015 · 1 comment
Open

retargeting every 720 vs 2016 blocks? #2

turnkit opened this issue Nov 13, 2015 · 1 comment

Comments

@turnkit
Copy link

turnkit commented Nov 13, 2015

Apparently this is a bug? The "2016" on this line should be "720" for Defcoin -?

lookup = pb->nHeight % 2016 + 1;

Can you read this and fix it if correct?
https://www.reddit.com/r/defcoin/comments/3cr2wd/defcoin_difficulty_does_not_retarget_every_2016/

@mspicer
Copy link

mspicer commented Jul 9, 2018

This item should be fixed in the new source code. See here for the code that is now dynamic based on the core and not hardcoded by the RPC client.
https://github.com/NaH012/Defcoin/blob/master/src/rpc/mining.cpp#L60

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

No branches or pull requests

2 participants