From 35c01fe25d923ca8773d7d01e9a103d5078989e7 Mon Sep 17 00:00:00 2001 From: Sabnock <24715302+Sabnock01@users.noreply.github.com> Date: Tue, 22 Aug 2023 09:17:12 -0500 Subject: [PATCH] docs: add `--dev` flag to book (#4307) Co-authored-by: Matthias Seitz --- book/cli/node.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/book/cli/node.md b/book/cli/node.md index 78d9b40db..d0826f9b2 100644 --- a/book/cli/node.md +++ b/book/cli/node.md @@ -314,6 +314,25 @@ Database: --auto-mine Automatically mine blocks for new transactions +Dev testnet: + --dev + Start the node in dev mode + + This mode uses a local proof-of-authority consensus engine with either fixed block times + or automatically mined blocks. + Disables network discovery and enables local http server. + Prefunds 20 accounts derived by mnemonic "test test test test test test test test test test + test junk" with 10 000 ETH each. + + --dev.block-max-transactions + How many transactions to mine per block + + --dev.block-time + Interval between blocks. + + Parses strings using [humantime::parse_duration] + --dev.block-time 12s + Logging: --log.persistent The flag to enable persistent logs