From 5ed56b551bb6e1fb984311399c5aedac6bdcb681 Mon Sep 17 00:00:00 2001 From: Alfredo Garcia Date: Fri, 3 Jun 2022 21:59:54 -0300 Subject: [PATCH] docs(lightwalletd): tutorial fixes (#4566) * fix flag Co-authored-by: Andrew Arnott * remove zebra from zcash.conf path Co-authored-by: Andrew Arnott * update the implementation of lightwalletd Co-authored-by: Andrew Arnott --- book/src/user/lightwalletd.md | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/book/src/user/lightwalletd.md b/book/src/user/lightwalletd.md index 192391ea5..8c0fdd958 100644 --- a/book/src/user/lightwalletd.md +++ b/book/src/user/lightwalletd.md @@ -81,19 +81,14 @@ For implementing zebra as a service please see [here](https://github.com/ZcashFo ## Download and build lightwalletd [#download-and-build-lightwalletd]: #download-and-build-lightwalletd -While you synchronize Zebra you can install lightwalletd. There are several versions of lightwalletd in different repositories: +While you synchronize Zebra you can install [lightwalletd](https://github.com/zcash/lightwalletd). -- [The original version](https://github.com/zcash/lightwalletd) -- [The version used by zecwallet-lite and zecwallet-cli](https://github.com/adityapk00/lightwalletd) - -Most of the testing related to Zebra and lightwalletd was done with the zecwallet version in the [adityapk00](https://github.com/adityapk00) repository. - -Before installing lightwalletd, you need to have `go` in place. Please visit the [go install page](https://go.dev/doc/install) with download and installation instructions. +Before installing, you need to have `go` in place. Please visit the [go install page](https://go.dev/doc/install) with download and installation instructions. With go installed and in your path, download and install lightwalletd: ```console -git clone https://github.com/adityapk00/lightwalletd +git clone https://github.com/zcash/lightwalletd cd lightwalletd make make install @@ -110,12 +105,12 @@ Please make sure you have zebrad running (with RPC endpoint and up to date block - For production setups `lightwalletd` requires a `cert.pem`. For more information on how to do this please [see here](https://github.com/zcash/lightwalletd#production-usage). -- `lightwalletd` can run without the certificate (with the `-no-tls-very-insecure` flag) however this is not recommended for production environments. +- `lightwalletd` can run without the certificate (with the `--no-tls-very-insecure` flag) however this is not recommended for production environments. With the cert in `./` and an empty `zcash.conf` we can start the sync with: ```console -lightwalletd --zcash-conf-path ~/.config/zebra/zcash.conf --data-dir ~/.cache/lightwalletd --log-file /dev/stdout +lightwalletd --zcash-conf-path ~/.config/zcash.conf --data-dir ~/.cache/lightwalletd --log-file /dev/stdout ``` By default lightwalletd service will listen on `127.0.0.1:9067`