mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
development mode: add subsection about running with custom genesis configuration
This commit is contained in:
parent
3bc0015238
commit
b6ddeb0814
1 changed files with 5 additions and 1 deletions
|
|
@ -291,7 +291,11 @@ Geth will fail to start in dev-mode if keys have been manually created or import
|
|||
geth --datadir dev-chain --dev --http --http.api web3,eth,net --http.corsdomain "remix.ethereum.org" --password password.txt
|
||||
```
|
||||
|
||||
**Note** that this is an edge-case that applies when both the `--datadir` and `--dev` flags are used and a key has been manually created or imported into the keystore.
|
||||
## Using a Custom Genesis Configuration
|
||||
|
||||
It is possible to use development mode with a custom genesis allocation. To obtain a compatible genesis configuration, run `geth --dev dumpgenesis`. The resulting genesis has proof-of-stake and all pre-merge hard forks activated at block 0. Precompile addresses are funded to prevent them being removed from the state per EIP158.
|
||||
|
||||
Users are free to modify the generated template provided they keep pre-merge hard-forks and proof-of-stack transition activated at block 0.
|
||||
|
||||
## Summary {#summary}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue