You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nodes/lite-nodes/spin-up-a-lite-node.md
+52-35Lines changed: 52 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,19 @@
1
1
---
2
2
description: >-
3
-
Lite-nodes are a simplified node option that allow developers to perform
4
-
lightweight tasks on a local node. This page covers how to spin-up a lite node
5
-
on your local machine.
3
+
Lite-nodes are a simplified node option that allows developers to perform lightweight tasks on a local node. This page covers how to spin up a lite node on your local machine.
6
4
---
7
5
8
6
# Spin up a lite-node
9
7
10
-
In this guide, we’re going to use the [Lotus](../implementations/lotus.md) Filecoin implementation. We’ll show how to install a lite-node on MacOS and Ubuntu. For other Linux distributions, check out the [Lotus documentation](https://lotus.filecoin.io/lotus/install/linux/#building-from-source). To run a lite-node on Windows, install [WLS with Ubuntu](https://ubuntu.com/tutorials/install-ubuntu-on-wsl2-on-windows-10#1-overview) on your system and follow the _Ubuntu_ instructions below.
8
+
In this guide, we will use the [Lotus](../implementations/lotus.md) Filecoin implementation to install a lite-node on MacOS and Ubuntu. For other Linux distributions, check out the [Lotus documentation](https://lotus.filecoin.io/lotus/install/linux/#building-from-source). To run a lite-node on Windows, install [WLS with Ubuntu](https://ubuntu.com/tutorials/install-ubuntu-on-wsl2-on-windows-10#1-overview) on your system and follow the _Ubuntu_ instructions below.
11
9
12
10
## Prerequisites
13
11
14
-
Lite-nodes have relatively lightweight hardware requirements – it’s possible to run a lite-node on a Raspberry Pi 4. Your machine should meet the following hardware requirements:
12
+
Lite-nodes have relatively lightweight hardware requirements. Your machine should meet the following hardware requirements:
15
13
16
14
1. At least 2 GiB of RAM
17
15
2. A dual-core CPU.
16
+
3. At least 4 GiB of storage space.
18
17
19
18
To build the lite-node, you’ll need some specific software. Run the following command to install the software prerequisites:
20
19
@@ -23,30 +22,30 @@ To build the lite-node, you’ll need some specific software. Run the following
23
22
1. Ensure you have [XCode](https://developer.apple.com/xcode/) and [Homebrew](https://brew.sh/) installed.
24
23
2. Install the following dependencies:
25
24
26
-
```sh
25
+
```shell
27
26
brew install go jq pkg-config hwloc coreutils rust
2. Checkout the latest release branch. First retrieve the latest release version:
133
+
2. Retrieve the latest Lotus release version:
123
134
124
-
```sh
135
+
```shell
125
136
git tag -l 'v*'| grep -v '-'| sort -V -r | head -n 1
126
137
```
127
138
128
-
Using the value returned from the previous command, i.e. v1.29.0, and checkout that branch:
139
+
This should output something like:
140
+
141
+
```output
142
+
v1.29.0
143
+
```
144
+
145
+
3. Using the value returned from the previous command, checkout to the latest release branch:
129
146
130
-
```sh
147
+
```shell
131
148
git checkout v1.29.0
132
149
```
133
150
134
-
3. If your processor was released later than an AMD Zen or Intel Ice Lake CPU, enable the use of SHA extensions by adding these two environment variables. If in doubt, ignore this command and move on to [the next section](https://docs.filecoin.io/nodes/lite-nodes/spin-up-a-lite-node/#build-the-binary).
151
+
4. If your processor was released later than an AMD Zen or Intel Ice Lake CPU, enable SHA extensions by adding these two environment variables. If in doubt, ignore this command and move on to [the next section](https://docs.filecoin.io/nodes/lite-nodes/spin-up-a-lite-node/#build-the-binary).
135
152
136
-
```sh
153
+
```shell
137
154
export RUSTFLAGS="-C target-cpu=native -g"
138
155
export FFI_BUILD_FROM_SOURCE=1
139
156
```
@@ -245,7 +262,7 @@ Let's start the lite-node by connecting to a remote full-node. We can use the pu
245
262
246
263
## Expose the API
247
264
248
-
To send JSON-RPC requests to our lite-node we need to expose the API.
265
+
To send JSON-RPC requests to our lite-node, we need to expose the API.
249
266
250
267
{% tabs %}
251
268
{% tab title="Mainnet" %}
@@ -301,7 +318,7 @@ To send JSON-RPC requests to our lite-node we need to expose the API.
301
318
```
302
319
303
320
2. Open the terminal window where your lite-node is running and press `CTRL` + `c` to close the daemon.
@@ -390,7 +407,7 @@ Let's run a couple of commands to see if the JSON-RPC API is set up correctly.
390
407
391
408
The result field is the public key for our address. The private key is stored within our lite-node.
392
409
393
-
3. Set the new address as the default wallet for our lite-node, reminder to replace the Bearer token with our auth key `eyJhbGc...` and the `"params"` value with the wallet address, `f1vuc4...`, returned from the previous command:
410
+
3. Set the new address as the default wallet for our lite-node. Remember to replace the Bearer token with our auth key `eyJhbGc...` and the `"params"` value with the wallet address, `f1vuc4...`, returned from the previous command:
0 commit comments