Skip to content

Commit

Permalink
Provide alternative method to download ledger file (nanocurrency#294)
Browse files Browse the repository at this point in the history
My Nano Ninja API can redirect the current ledger file preserved at
Yandex. It is convenient for Docker and/or shell scripting integration.
  • Loading branch information
jserv authored May 20, 2020
1 parent 6ba00b1 commit e4de3e4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/running-a-node/ledger-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,18 @@ The additional resource usage these options cause should be considered, especial
!!! tip "Always backup your ledgers file"
Whenever you are attempting to change the ledger, it is highly recommended you create backups of the existing `data.ldb` file to ensure you have a rollback point if issues are encountered.

To avoid bootstrapping times, a [ledger file](#ledger-file) (`data.ldb`) can be downloaded off-network and added to the data file used by the node. This process is sometimes referred to as a "fast sync". The Nano Foundation provides a daily ledger file download in the #ledger channel of our [Discord server](https://chat.nano.org). This is posted by `SergSW` and contains checksums for validation.
To avoid bootstrapping times, a [ledger file](#ledger-file) (`data.ldb`) can be downloaded off-network and added to the data file used by the node. This process is sometimes referred to as a "fast sync". The Nano Foundation provides a daily ledger file download in the `#ledger` channel of our [Discord server](https://chat.nano.org). This is posted by `SergSW` and contains checksums for validation.
Alternatively, one of [My Nano Ninja](https://mynano.ninja/api) APIs redirects the current ledger file preserved at [Yandex](https://yandex.com/):
```bash
wget -O ledger.7z https://mynano.ninja/api/ledger/download -q --show-progress
```

Verify the checksum of the above downloaded ledger file:
```bash
printf "%s ledger.7z" `wget -q -O - https://mynano.ninja/api/ledger/checksum/sha256` | sha256sum --check
```

Be patient and wait for the message `ledger.7z: OK`.

Before using this method there are a few considerations to ensure it is done safely:

Expand Down

0 comments on commit e4de3e4

Please sign in to comment.