Skip to content

Commit

Permalink
doc: update snapshot related instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
roylee17 committed Aug 14, 2022
1 parent be0d7de commit ff324e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ If no config is found, it creates a [default one](sample-lbcd.conf), which inclu

### RPC server

RPC credentials (`rpcuser` and `rpcpass`) is required to enable RPC server. It can be specify in the `"${LBCDIR}/lbcd.conf"`, using command line options:
RPC credentials (`rpcuser` and `rpcpass`) is required to enable RPC server. It can be specify in the `"${LBCDDIR}/lbcd.conf"`, using command line options:

``` sh
./lbcd --rpcuser=rpcuser --rpcpass=rpcpass
Expand Down Expand Up @@ -138,7 +138,7 @@ Download the snapshot, and uncompress it:

``` sh
time curl -O https://snapshots.lbry.com/blockchain/lbcd_snapshot_1199527_v0.22.105_2022-07-27.tar.zst
zstd -d lbcd_snapshot_1199527_v0.22.105_2022-07-27.tar.zst | tar xf - -C "${LBCDIR}"
zstd -d --stdout lbcd_snapshot_1199527_v0.22.105_2022-07-27.tar.zst | tar xf - -C "${LBCDDIR}"
```

If preferred, a user can download and uncompress the snapshot on the fly:
Expand All @@ -147,7 +147,7 @@ By the time the download is finished, the snapshots should be almost uncompresse
``` sh
mkdir -p "${LBCDDIR}"

time curl https://snapshots.lbry.com/blockchain/lbcd_snapshot_1199527_v0.22.105_2022-07-27.tar.zst | zstd -d | tar xf - -C "${LBCDIR}"
time curl https://snapshots.lbry.com/blockchain/lbcd_snapshot_1199527_v0.22.105_2022-07-27.tar.zst | zstd -d --stdout | tar xf - -C "${LBCDDIR}"

# % Total % Received % Xferd Average Speed Time Time Time Current
# Dload Upload Total Spent Left Speed
Expand Down

0 comments on commit ff324e0

Please sign in to comment.