Setup Lightwalletd
Actually, Lightwalletd (LWD) does not require much configuration. Everything can be specified on the command line.
$ ./lightwalletd --no-tls-very-insecure --zcash-conf-path ./regtest_dir/zcash.conf --data-dir lwd-data --log-file /dev/stdout --grpc-bind-addr 0.0.0.0:9168
no-tls-very-insecure
indicates that we are not using SSL, i.e encrypted HTTPzcash-conf-path
must point to the samezcashd
configuration filedata-dir
gives the path to the LWD data directorylog-file
is self-explanatorygrpc-bind-addr
is where LWD should listen. Here it on port 9168 This must match the configuration ofzcash-warp
LWD_URL.
LWD should quickly import the first 101 blocks and wait for block #102.
{"app":"lightwalletd","level":"info","msg":"Waiting for block: 102","time":"2024-09-23T08:58:25+08:00"}