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
+72-54Lines changed: 72 additions & 54 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
27
-
brew install go bzr jq pkg-config hwloc coreutils rust
25
+
```shell
26
+
brew install go jq pkg-config hwloc coreutils rust
2. Switch to the branch representing the network you want to use. Mainnet always uses the `releases` branch:
133
+
2. Retrieve the latest Lotus release version:
123
134
124
-
```sh
125
-
git checkout releases
135
+
```shell
136
+
git tag -l 'v*'| grep -v '-'| sort -V -r | head -n 1
137
+
```
138
+
139
+
This should output something like:
140
+
141
+
```output
142
+
v1.29.0
126
143
```
127
144
128
-
Or you can checkout to the Calibration testnet release using the `ntwk/calibration` branch:
145
+
3. Using the value returned from the previous command, checkout to the latest release branch:
129
146
130
-
```sh
131
-
git checkout ntwk/calibration
147
+
```shell
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
```
@@ -170,7 +187,7 @@ The last thing we need to do to get our node setup is to build the package. The
170
187
This will output something like:
171
188
172
189
```plaintext
173
-
lotus version 1.19.1-dev+mainnet+git.94b621dd5
190
+
lotus version 1.29.0+mainnet+git.1ff3b360b
174
191
```
175
192
{% endtab %}
176
193
{% tab title="Calibration" %}
@@ -196,7 +213,7 @@ The last thing we need to do to get our node setup is to build the package. The
196
213
This will output something like:
197
214
198
215
```plaintext
199
-
lotus version 1.19.1-dev+calibrationnet+git.94b621dd5.dirty
216
+
lotus version 1.29.0+calibnet+git.1ff3b360b
200
217
```
201
218
202
219
{% endtab %}
@@ -211,7 +228,7 @@ Let's start the lite-node by connecting to a remote full-node. We can use the pu
211
228
1. Create an environment variable called `FULLNODE_API_INFO` and set it to the WebSockets address of the node you want to connect to. At the same time, start the Lotus daemon with the `--lite` tag:
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:
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