TurtlePay™ Blockchain Data Collection Agent (BDCA)
Switch branches/tags
Nothing to show
Clone or download
brandonlehmann Adding a script that allows us to information from an arbitrary start…
… height to resolve issues with database corruption as a result of prior issues before the last commit
Latest commit 1ef5cc8 Nov 29, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.gitignore
.travis.yml
LICENSE
README.md
appveyor.yml
config.json
fix.js
index.js
package-lock.json
package.json
schema.sql

README.md

TurtlePay™ Blockchain Data Collection Agent (BDCA)

Master Build Status

Build Status Build status

Prerequisites

Foreword

We know that this documentation needs cleaned up and made easier to read. We'll compile it as part of the full documentation as the project works forward.

Setup

  1. Clone this repository to wherever you'd like the API to run:
git clone https://github.com/TurtlePay/blockchain-data-collection-agent
  1. Install the required Node.js modules
cd blockchain-data-collection-agent && npm install
  1. Use your favorite text editor to change the values as necessary in config.json

Note: Make sure you use a limited database user for security reasons

{
  "mysql": {
    "host": "localhost",
    "port": 3306,
    "username": "root",
    "password": "password",
    "database": "turtlecoin",
    "connectionLimit": 10
  },
  "node": {
    "host": "localhost",
    "port": 11898
  }
}
  1. Load the database schema from schema.sql into your configured database.

  2. Fire up the script

node index.js
  1. Optionally, install PM2 or another process manager to keep the service running.
npm install -g pm2@latest
pm2 startup
pm2 start index.js --name blockchain-data-collection-agent
pm2 save
  1. Wait to build your database cache (this is likely to take days)
(c) 2018 TurtlePay™ Development Team