tiabguls / defcoin

Yet another scrypt coin
MIT License
25 stars 15 forks source link

retargeting every 720 vs 2016 blocks? #2

Open turnkit opened 8 years ago

turnkit commented 8 years ago

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

https://github.com/tiabguls/defcoin/blob/b7464ebf0e16f67cd38ef55d8c4b0a5410d467a7/src/rpcmining.cpp#L28

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 commented 6 years ago

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