To set-up a private network with a given genesis document, I can start with the init command or start mining. With init and an account already existing, I can see the block created from the console (eth.getBlock('latest')). Mining would, of course, create the block (miner.start(1) and also credit the reward to an etherbase account or the eth.accounts[0]. So,
- Does
inittrigger a mining? - Who receives the reward for the genesis block when created with an
init?
References:
initwas not mined unless it was created out ofminer.start(1)? I mean, as far as genesis block creation is concerned how is initialization and mining different? – cogitoergosum Mar 20 '18 at 02:56gethwithout init it is going to attempt to mine Ethereum's Main Net blockchain, not your private blockchain. do a `eth.getBlock(0) and see the hash of the block, it must be the hash of your genesis not the 0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3 – Nulik Mar 20 '18 at 03:05gethskips theinitprocess to make it easier to join Ethereum's Main Net, but for private chains you have to doinitwhen you create the node. – Nulik Mar 20 '18 at 03:07initis a per-requisite for mining in private networks. Thanks! – cogitoergosum Mar 20 '18 at 03:12