zcash-grant-system/blockchain
William O'Beirne 0e4626157f
Blockchain watcher bootstrap (#92)
* Initial work on bootstrap refactor. Still results in delayed bootstrapping and double bootstrapping.

* Remove logging.

* Fix invalid json in body on non-post requests. Reduce error verbosity.

* Adjust error output.
2019-01-21 12:51:49 -05:00
..
.zcash Blockchain watcher microservice (#28) 2018-12-28 17:24:46 -06:00
src Blockchain watcher bootstrap (#92) 2019-01-21 12:51:49 -05:00
types Blockchain watcher microservice (#28) 2018-12-28 17:24:46 -06:00
.env.example Blockchain watcher bootstrap (#92) 2019-01-21 12:51:49 -05:00
.gitignore Productionify blockchain microservice (#56) 2019-01-10 14:18:31 -06:00
Procfile Productionify blockchain microservice (#56) 2019-01-10 14:18:31 -06:00
README.md Blockchain watcher microservice (#28) 2018-12-28 17:24:46 -06:00
package.json Better logging & add sentry to blockchain watcher (#93) 2019-01-18 19:34:11 -05:00
tsconfig.json Productionify blockchain microservice (#56) 2019-01-10 14:18:31 -06:00
yarn.lock Better logging & add sentry to blockchain watcher (#93) 2019-01-18 19:34:11 -05:00

README.md

Blockchain Watcher

Creates a websocket server that reads and reports on the activity of the ZCash blockchain. Communicates with a node over RPC.

Development

First time setup (Only do once)

  1. Run yarn to fetch all dependencies
  2. Copy .env.example to .env
  3. Run a zcashd regtest node with the following command
zcashd -daemon -datadir=./.zcash -wallet=offline.dat
  1. Mine at least 100 blocks with zcash-cli generate 101 to activate Overwinter and Sapling
  2. Run yarn genkey and copy the environment variables into .env
  3. Run yarn genaddress and copy the environment variables into .env

After all that...

  1. Run zcashd (without the offline wallet)
zcashd -daemon -datadir=./.zcash
  1. Run the websocket server with
yarn dev

See the Wiki page for more information on running a regtest node.

Deployment

TBD