Author

Topic: Low difficulty for first X blocks (Read 476 times)

hero member
Activity: 508
Merit: 500
Techwolf on #bitcoin and Reddit
June 16, 2014, 01:08:22 AM
#3
Asking in the "Development & Technical Discussion" forum will generally get you a faster response to coin development questions.

If you want a premine on your coin, the first blocks should be automatically at a low difficulty. You just need to edit the GetBlockValue function in main.cpp (for scrypt at least, it may be elsewhere in other altcoins) to award a different amount of coins for the first few blocks. Take a look at yiffcoin if you need a simple example of what I did, and you may also want to check out other altcoins' implementations of it for more in depth examples and different reward styles.
sr. member
Activity: 350
Merit: 250
June 16, 2014, 12:28:05 AM
#2
Anyone? Any coins done this already?
sr. member
Activity: 350
Merit: 250
June 15, 2014, 10:00:53 PM
#1
Can anyone point me as to how I can set the first X number of blocks to a low difficulty so I may insta-mine them, I need this for testing purposes.

Thanks!  Wink
Jump to: