I am trying to create a private network for testing purposes. What I need is:
- Fast generating of DAG file.
- Fast mining of the first block.
- Address with some preallocated amount of Eth.
I found that this could be done by two ways, the first one is:
- Generate the address.
- Pass it in the genesis file.
- Run
geth --datadir "." init genesis.json
Run
geth --dev --mine --datadir "."
PROBLEM: Address is not preallocated with money (I don't know why, maybe genesis.json file isn't reading properly)
The second one is:
- Generate the address.
- Pass it in the genesis file.
- Run
geth --datadir "." init genesis.json
Run
geth --networkid 123 --nodiscover --mine --maxpeers 0 --datadir "."
PROBLEM: DAG file is generating too slow.
Q: Any suggestions how I can meet all requirements?
genesis.json:
{
"nonce": "0xdeadbeefdeadbeef",
"timestamp": "0x0",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"extraData": "0x0",
"gasLimit": "0x8000000",
"difficulty": "0x01",
"mixhash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"coinbase": "0xe7b728f368fce77508e4562ef370d3e902bb79dc",
"alloc": {
"0xe7b728f368fce77508e4562ef370d3e902bb79dc": {
"balance": "10000000000000000000"
}
}
}
geth info:
Geth
Version: 1.4.3-stable
Protocol Versions: [63 62 61]
Network Id: 1