Bitcoin creates 2160 blocks, and if the average time of 2160 blocks is less than 10 minutes, the difficulty increases. If it is more than 10 minutes, the difficulty decreases.

As I was studying Light Coin, I could not find any information on how to adjust the block generation difficulty.

Please solve the question.

  • It is actually 2016 blocks in Bitcoin per difficulty retargeting. (The first block is not accounted for due to an off-by-one error) – KappaDev Oct 7 '18 at 1:26

Litecoin is a fork of Bitcoin Core, and uses the same difficulty adjustment period (2016 blocks), which on Litecoin is 3.5 days because the block time is 2.5 minutes instead of 10. See chainparams.cppL#85:

consensus.nPowTargetTimespan = 3.5 * 24 * 60 * 60; // 3.5 days
consensus.nPowTargetSpacing = 2.5 * 60;

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.