/qtum-sync-demo

Sync qtum blocks to database

Primary LanguageTypeScript

Qtum blockchain syncer (demo)

Stack

Docker local install

docker-compose -f stack/qtum-sync-single.yml up
# after builds open http://localhost:3000

Dev Install

  • Chain + Database
docker-compose -f stack/qtum-local.yml up -d
docker-compose -f stack/mongo-local.yml up -d
  • Packages
npm install
  • Test
npm test
  • Lint
npm run lint
  • Run
npm start

Endpoints

GET `/` - get service info
GET `/stats` - sync stats

TODO

POST `/pause` - pause service
POST `/unpause` - unpause service
POST `/height` - set height