apply review suggestions

This commit is contained in:
Felix Lange 2019-11-12 15:49:44 +01:00
parent 6ded243747
commit 433a382342

View file

@ -63,12 +63,14 @@ block, you need to decide on a few initial parameters for your blockchain:
while the blockchain is running requires scheduling a hard fork. while the blockchain is running requires scheduling a hard fork.
- Initial block gas limit (`gasLimit`). Your choice here impacts how much EVM computation - Initial block gas limit (`gasLimit`). Your choice here impacts how much EVM computation
can happen within a single block. We recommend using the main Ethereum network as a can happen within a single block. We recommend using the main Ethereum network as a
guideline to find a good amount. The block gas limit can be adjusted after launch using [guideline to find a good amount](gaslimit-char). The block gas limit can be adjusted
the `--targetgaslimit` command-line flag. after launch using the `--targetgaslimit` command-line flag.
- Initial allocation of ether (`alloc`). This determines how much ether is available to - Initial allocation of ether (`alloc`). This determines how much ether is available to
the addresses you list in the genesis block. Additional ether can be created through the addresses you list in the genesis block. Additional ether can be created through
mining as the chain progresses. mining as the chain progresses.
[gaslimit-chart]: https://etherscan.io/chart/gaslimit
#### Clique Example #### Clique Example
This is an example of a genesis.json file for a proof-of-authority network. The `config` This is an example of a genesis.json file for a proof-of-authority network. The `config`
@ -87,10 +89,12 @@ geth account new --datadir data
Take note of the Ethereum address printed by this command. Take note of the Ethereum address printed by this command.
To create the initial extradata for your network, collect the signer addresses and To create the initial extradata for your network, collect the signer addresses and encode
hex-encode `extradata` as the concatenation of 32 zero bytes, all signer addresses, and 65 `extradata` as the concatenation of 32 zero bytes, all signer addresses, and 65 further
further zero bytes. In the example below, `extradata` contains a single initial signer zero bytes. In the example below, `extradata` contains a single initial signer address,
address, `0x7df9a875a174b3bc565e6424a0050ebc1b2d1d82`. `0x7df9a875a174b3bc565e6424a0050ebc1b2d1d82`.
You can use the `period` configuration option to set the target block time of the chain.
```json ```json
{ {
@ -102,7 +106,7 @@ address, `0x7df9a875a174b3bc565e6424a0050ebc1b2d1d82`.
"eip158Block": 0, "eip158Block": 0,
"byzantiumBlock": 0, "byzantiumBlock": 0,
"constantinopleBlock": 0, "constantinopleBlock": 0,
"petersburgBlock": 0 "petersburgBlock": 0,
"clique": { "clique": {
"period": 5, "period": 5,
"epoch": 30000 "epoch": 30000