Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Neo-cli AutoStart configuration updated #1201

Merged
merged 1 commit into from
Mar 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions docs/en-us/develop/network/private-chain/solo.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Alternatively, you can build a private chain with one node from scratch, which w

## Prerequisites

1. Refer to [Installation of NEO-CLI](../../../node/cli/setup.md) to install Neo-CLI.
1. Refer to [Installation of NEO-CLI](../../../node/cli/setup.md) to install Neo-CLI. (Make sure you install the DBFTPlugin)
2. Run Neo-CLI and enter the command `create wallet <path>` to create a wallet, e.g. `create wallet consensus.json`

3. Specify the wallet password and confirm.
Expand All @@ -19,8 +19,8 @@ Alternatively, you can build a private chain with one node from scratch, which w
In config.json under the Neo-cli directory, make the following configurations:

- In `UnlockWallet` specify the wallet path and wallet password.
- Set `StartConsensus` and `IsActive` as true.
- Set `ConsoleOutput` and `Active` as true.
- Set `IsActive` as true.
- Set `ConsoleOutput` and `Active` as true.
- Set `ValidatorsCount` as 1.
- In `StandbyCommittee`, enter the public key of the `consensus.json` wallet (Only one public key in `StandbyCommittee` represents the solo mode).

Expand Down Expand Up @@ -62,6 +62,25 @@ Here is an example:
}
```

In the config.json under the `Plugins\DBFTPlugin` directory make the following change:

- Set `AutoStart` as true

Here is an example:

```json
{
"PluginConfiguration": {
"RecoveryLogs": "ConsensusState",
"IgnoreRecoveryLogs": false,
"AutoStart": true,
"Network": 827601742,
"MaxBlockSize": 262144,
"MaxBlockSystemFee": 900000000000
}
}
```

## Starting the private chain

Run the command line and enter the Neo-CLI directory. Then enter `neo-cli.exe` to start the private chain. The private chain is set up successfully when it goes as shown below:
Expand Down