forked from cryptonotefoundation/cryptonote
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change CryptonoteConfig parameters and changed difficulty adjustment …
…algorithm back to original CryptoNoteConfig.h - reduced initial block size - reduced maximum number of blocks Currency.cpp - changed difficulty adjustment algorithm back to original -LWMA difficulty does not work to produce 9 second blocks. Blocks were coming out too fast at 2 seconds per block and difficulty was not increasing.
- Loading branch information
aphivantrakul
committed
Dec 2, 2018
1 parent
098b6a9
commit c38f556
Showing
2 changed files
with
61 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c38f556
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you trying
T=9
? Its awesome if it is working correctly... 🤔c38f556
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I copy-pasted your LWMA2 to my testing program and took out the resize-related statements including the difficulty guess and the solvetime was exactly 9 like it should be. If you want to use LWMA-1 or LWMA-3 (the same as your but the exploit is removed) then you should copy-paste the LWMA from the LWMA page. It's written now so that you you only need to change send it the correct variables. It does not need modification inside the algorithm which should prevent a lot of problems (it's now plug-and-play for CN-type coins) except that where indicated you un-comment some lines to make it work like LWMA-3 instead of LWMA-1.
The core code of your LWMA-2 calculation (that should not be used by anyone) which works correctly (except for the exploit) is: