Skip to content

Commit 8a008ee

Browse files
nedififjl
andauthored
cmd/geth: print info banner for --dev mode (#24759)
Co-authored-by: nedifi <[email protected]> Co-authored-by: Felix Lange <[email protected]>
1 parent 6465032 commit 8a008ee

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

cmd/geth/main.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,21 @@ func prepare(ctx *cli.Context) {
286286

287287
case ctx.GlobalIsSet(utils.DeveloperFlag.Name):
288288
log.Info("Starting Geth in ephemeral dev mode...")
289+
log.Warn(`You are running Geth in --dev mode. Please note the following:
290+
291+
1. This mode is only intended for fast, iterative development without assumptions on
292+
security or persistence.
293+
2. The database is created in memory unless specified otherwise. Therefore, shutting down
294+
your computer or losing power will wipe your entire block data and chain state for
295+
your dev environment.
296+
3. A random, pre-allocated developer account will be available and unlocked as
297+
eth.coinbase, which can be used for testing. The random dev account is temporary,
298+
stored on a ramdisk, and will be lost if your machine is restarted.
299+
4. Mining is enabled by default. However, the client will only seal blocks if transactions
300+
are pending in the mempool. The miner's minimum accepted gas price is 1.
301+
5. Networking is disabled; there is no listen-address, the maximum number of peers is set
302+
to 0, and discovery is disabled.
303+
`)
289304

290305
case !ctx.GlobalIsSet(utils.NetworkIdFlag.Name):
291306
log.Info("Starting Geth on Ethereum mainnet...")

0 commit comments

Comments
 (0)