GithubHelp home page GithubHelp logo

isabella232 / lightwalletd-z-cash Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zcash-hackworks/lightwalletd-z-cash

0.0 0.0 0.0 8 KB

Lightwallet server for Zcash

License: MIT License

Dockerfile 64.64% Shell 35.36%

lightwalletd-z-cash's Introduction

Collaborated heavily with Boltlabs

Build a zcashd node from multi-container Docker build

cd ./Dockerfiles/zcashd
bash build-image.sh

Create docker volumes and populate the zcash-params volume

See example scripts create_mainnet_params_volume.sh. Change accordingly for testnet.

Build a monolith container with lightwallet node and zcashd node from multi-container Docker build

cd ./Dockerfiles/lightwalletd
bash build-image.sh

Fetch params into a volume:

docker run --rm -itd \
--user zcash \
--mount source=testnet-params,destination=/home/zcash/.zcash-params \
zcash-hackworks/lightwalletd:latest bash -c "fetch-params.sh"

To follow progress run:

docker logs -f `docker ps | grep lightwalletd | cut -d' ' -f1`

Run the container. Make sure you have whatever firewall open on port 9067.

bash Dockerfiles/lightwalletd/run_zcashd_container.sh

Check that it is running

Fetch docker-grpcurl

curl -LO https://raw.githubusercontent.com/datawire/docker-grpcurl/master/grpcurl.sh && chmod +x grpcurl.sh

(I had to remove the 'set' in that script for it to run)

Check the API is up. It will return the latest block indexed into lightwallet db.

./grpcurl.sh -plaintext localhost:9067 cash.z.wallet.sdk.rpc.CompactTxStreamer/GetLatestBlock
{
  "height": ${SOME_INTEGER_HEIGHT}
}

ToDo

  1. TLS termination via load balancer or through gRPC library.
  2. Finish and clean up docker-compose.yml stack deploy.

lightwalletd-z-cash's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.