mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
fix links in getting started guide
This commit is contained in:
parent
7c37e54fb8
commit
1142c20a08
1 changed files with 17 additions and 8 deletions
|
|
@ -8,29 +8,36 @@ To use Geth, you need to install it first. You can install the geth software in
|
|||
of ways. These include installing it via your favorite package manager; downloading a
|
||||
standalone pre-built binary; running as a docker container; or building it yourself.
|
||||
|
||||
Head over to the [install and build](/install-and-build/Installing-Geth) section and
|
||||
Head over to the [install and build](./install-and-build/installing-geth) section and
|
||||
follow the instructions for your operating system.
|
||||
|
||||
## Starting a node
|
||||
|
||||
### Create an account
|
||||
|
||||
Before starting Geth you first need to create an account that represents a key pair. Use the following command to create a new account and set a password for that account:
|
||||
Before starting Geth you first need to create an account that represents a key pair. Use
|
||||
the following command to create a new account and set a password for that account:
|
||||
|
||||
```shell
|
||||
geth account new
|
||||
```
|
||||
|
||||
_[Read this guide](/interface/Managing-your-accounts) for more details on importing existing Ethereum accounts and other uses of the `account` command._
|
||||
_[Read this guide](./interface/managing-your-accounts) for more details on importing
|
||||
existing Ethereum accounts and other uses of the `account` command._
|
||||
|
||||
### Sync modes
|
||||
|
||||
Running Geth starts an Ethereum node that can join any existing network, or create a new one. You can start Geth in one of three different sync modes using the `--syncmode "{mode}"` argument that determines what sort of node it is in the network.
|
||||
Running Geth starts an Ethereum node that can join any existing network, or create a new
|
||||
one. You can start Geth in one of three different sync modes using the `--syncmode
|
||||
"{mode}"` argument that determines what sort of node it is in the network.
|
||||
|
||||
These are:
|
||||
|
||||
- **Full**: Downloads all blocks (including headers, transactions and receipts) and generates the state of the blockchain incrementally by executing every block.
|
||||
- **Fast** (Default): Downloads all blocks (including headers, transactions and receipts), verifies all headers, and downloads the state and verifies it against the headers.
|
||||
- **Full**: Downloads all blocks (including headers, transactions and receipts) and
|
||||
generates the state of the blockchain incrementally by executing every block.
|
||||
- **Fast** (Default): Downloads all blocks (including headers, transactions and
|
||||
receipts), verifies all headers, and downloads the state and verifies it against the
|
||||
headers.
|
||||
- **Light**: Downloads all block headers, block data, and verifies some randomly.
|
||||
|
||||
For example:
|
||||
|
|
@ -41,13 +48,15 @@ geth --syncmode "light"
|
|||
|
||||
### Connect to node
|
||||
|
||||
Once you have an account and Geth is running, you can interact with it by opening another terminal and using the following command to open a JavaScript console:
|
||||
Once you have an account and Geth is running, you can interact with it by opening another
|
||||
terminal and using the following command to open a JavaScript console:
|
||||
|
||||
```shell
|
||||
geth attach
|
||||
```
|
||||
|
||||
In the console you can issue any of the Geth commands, for example, to list all the accounts on the node, use:
|
||||
In the console you can issue any of the Geth commands, for example, to list all the
|
||||
accounts on the node, use:
|
||||
|
||||
```shell
|
||||
eth.accounts
|
||||
|
|
|
|||
Loading…
Reference in a new issue