Skip to content

Commit 969df67

Browse files
authored
Update blockchain-explorer.md (raspibolt#1297)
1 parent bc79b84 commit 969df67

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

guide/bitcoin/blockchain-explorer.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,16 @@ An attacker would not be able to do much within this user's permission settings.
121121
$ sudo su - btcrpcexplorer
122122
```
123123

124+
* Set a temporary version environment variable to the installation
125+
126+
```sh
127+
$ VERSION=3.4.0
128+
```
129+
124130
* Download the source code directly from GitHub and install all dependencies using the Node Package Manager (NPM).
125131

126132
```sh
127-
$ git clone --branch v3.3.0 https://github.com/janoside/btc-rpc-explorer.git
133+
$ git clone --branch v$VERSION https://github.com/janoside/btc-rpc-explorer.git
128134
$ cd btc-rpc-explorer
129135
$ npm install
130136
```
@@ -280,14 +286,14 @@ In order to do that, we create a systemd unit that starts the service on boot di
280286
```sh
281287
$ sudo nano /etc/systemd/system/bitcoind.service
282288
```
283-
289+
284290
```ini
285291
[Unit]
286292
Description=Bitcoin daemon
287293
After=network.target
288294
Wants=btcrpcexplorer.service
289295
```
290-
296+
291297
* Reload the systemd manager configuration to recreate the entire dependency tree
292298

293299
```sh
@@ -342,14 +348,20 @@ Updating to a [new release](https://github.com/janoside/btc-rpc-explorer/release
342348
$ sudo su - btcrpcexplorer
343349
```
344350

345-
* Fetch the latest GitHub repository information, display the release tags (use the latest `v3.3.0` in this example), and update:
351+
* Set a temporary version environment variable to the installation
352+
353+
```sh
354+
$ VERSION=3.4.0
355+
```
356+
357+
* Fetch the latest GitHub repository information, display the release tags (use the latest in this example), and update:
346358

347359
```sh
348360
$ cd /home/btcrpcexplorer/btc-rpc-explorer
349361
$ git fetch
350362
$ git reset --hard HEAD
351363
$ git tag
352-
$ git checkout v3.3.0
364+
$ git checkout v$VERSION
353365
$ npm install
354366
$ exit
355367
```
@@ -365,4 +377,3 @@ Updating to a [new release](https://github.com/janoside/btc-rpc-explorer/release
365377
---
366378

367379
Next: [Lightning >>](../lightning/index.md)
368-

0 commit comments

Comments
 (0)