1

I would like to create a Fork of Monero with a certain number of coins premined.

I have tried to follow How would someone premine a direct fork of monero ( can it be done ) but it is incomplete.

Based on this, I have found on line 92 of src/cryptonote_basic/cryptonote_basic_impl.h

bool get_block_reward(size_t median_size, size_t current_block_size, uint64_t already_generated_coins, uint64_t &reward, uint8_t version);

Lets assume I have a maximum supply of 5000000 coins of which 90% are premined. Where do I modify the Monero code to show this? Also, where do I specify the wallet address for the pre-mined coins to be sent to?

  • Why do you want / need to premine? – jtgrassie Jul 5 '18 at 1:45
1

You can add this line of code in the first line of the get_block_reward function for premine, set the reward of your choice

 if(already_generated_coins == 0) {
       reward = 4000000;
       return true;
    }

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

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