1

I want to run a private ethereum blockchain.

What I want is I want to distribute certain number of premined ethers (say 20 million) among some accounts. If I initially keep the difficulty high, It will take too long to mine the blocks and get the required rewards.

Is it possible to premine certain number of blocks and then increase the difficulty level? Will I have to stop the geth instance to adjust the difficulty level? and If I stop the geth instance in between, How can I continue mining over the previous blockchain with a different genesis blocK?

  • I think it would be simpler to pre-allocate funds to those accounts in the genesis block rather than forcing a step change in mining difficulty at a certain threshold - do you have any limitations that are preventing you from doing it this way? – TC8 Feb 4 '18 at 10:03
  • The limitation is that I don't want to invest in expensive miners till more miners join. But later, I can't continue with a difficulty of something like 0x2000, because people may come up with powerful hardware and mine at an insane rate. and I also don't want to lose the previous transaction data at that point of time. – Ramesh Pareek Feb 4 '18 at 11:52
  • So in that case it seems more logical to set the difficulty where you want it at genesis and pre-allocate funds in the genesis block to certain addresses you control - you can do this by creating new accounts with geth before creating the genesis file, then running puppeth and pasting the addresses you'd like to pre-allocate funds to at the appropriate step of the genesis file creation – TC8 Feb 4 '18 at 17:30
  • Append/add --fakepow to disable mining for geth command. But its not suggestible for live network. – Jitendra Kumar. Balla Feb 4 '18 at 17:40

Your Answer

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

Browse other questions tagged or ask your own question.