zcash-grant-system/blockchain
William O'Beirne 15f960aec1
Blockchain watcher safety adjustments (#411)
* Fix a failed block potentially being skipped. Up retry sleep to 2 minutes, up number of failed requests to 10 to give blockchain more time to recover.

* Fix non-transaction vouts causing issues.

* Wrap whole scan function in try. Reduce retry time to 1 minute.
2019-03-28 11:35:45 -04:00
..
.zcash Blockchain watcher microservice (#28) 2018-12-28 17:24:46 -06:00
src Blockchain watcher safety adjustments (#411) 2019-03-28 11:35:45 -04:00
types Add config for fixie static ip proxy. 2019-03-19 16:24:25 -04:00
.env.example Add config for fixie static ip proxy. 2019-03-19 16:24:25 -04: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 Proposal staking (#134) 2019-01-31 17:56:16 -05:00
package.json Initial work on BitGo integration. Functions as expected. 2019-03-19 15:56:58 -04:00
tsconfig.json Initial work on BitGo integration. Functions as expected. 2019-03-19 15:56:58 -04:00
yarn.lock Initial work on BitGo integration. Functions as expected. 2019-03-19 15:56:58 -04: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