From 4e3b4c6ae1d573a0cb85dbab4defb1c2a4499ee3 Mon Sep 17 00:00:00 2001 From: jwasinger Date: Wed, 22 Nov 2023 19:09:55 +0800 Subject: [PATCH] website: add subsection about running in development mode with custom genesis configuration (#28469) * development mode: add subsection about running with custom genesis configuration * revise wording. remove extra spaces. * Update dev-mode.md --------- Co-authored-by: Felix Lange --- docs/developers/dapp-developer/dev-mode.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/developers/dapp-developer/dev-mode.md b/docs/developers/dapp-developer/dev-mode.md index d37a0ff0b1..445d67d58e 100644 --- a/docs/developers/dapp-developer/dev-mode.md +++ b/docs/developers/dapp-developer/dev-mode.md @@ -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 a custom genesis block configuration in development mode. To obtain a compatible 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-stake transition activated at block 0. ## Summary {#summary}