From 11f126a7710319efca5d1912f1115a68959e74af Mon Sep 17 00:00:00 2001 From: Sabnock01 <24715302+Sabnock01@users.noreply.github.com> Date: Mon, 21 Aug 2023 22:54:01 -0500 Subject: [PATCH 1/4] docs: add --dev flag to book --- book/cli/node.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/book/cli/node.md b/book/cli/node.md index 78d9b40dba2..b30c8159ba5 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 From db84a154db426157779daf3aa7a47f066258eaab Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 22 Aug 2023 16:07:27 +0200 Subject: [PATCH 2/4] Update book/cli/node.md --- book/cli/node.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/cli/node.md b/book/cli/node.md index b30c8159ba5..8551edd963b 100644 --- a/book/cli/node.md +++ b/book/cli/node.md @@ -327,7 +327,7 @@ Dev testnet: --dev.block_max_transactions How many transactions to mine per block - --dev.block_time + --dev.block-time Interval between blocks. Parses strings using [humantime::parse_duration] From ddc4aa9baf7124f07168281144617f24f0085ab7 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 22 Aug 2023 16:07:34 +0200 Subject: [PATCH 3/4] Update book/cli/node.md --- book/cli/node.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/cli/node.md b/book/cli/node.md index 8551edd963b..bd46e0c1636 100644 --- a/book/cli/node.md +++ b/book/cli/node.md @@ -331,7 +331,7 @@ Dev testnet: Interval between blocks. Parses strings using [humantime::parse_duration] - --dev.block_time 12s + --dev.block-time 12s Logging: --log.persistent From 5c8bec328286bc18e99ae6a2db0a5c8f4cc9d9cf Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 22 Aug 2023 16:07:40 +0200 Subject: [PATCH 4/4] Update book/cli/node.md --- book/cli/node.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/cli/node.md b/book/cli/node.md index bd46e0c1636..d0826f9b214 100644 --- a/book/cli/node.md +++ b/book/cli/node.md @@ -324,7 +324,7 @@ Dev testnet: 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 + --dev.block-max-transactions How many transactions to mine per block --dev.block-time