💸 CryptoCurrency for all
Clone or download
Pull request Compare This branch is 453 commits ahead, 76 commits behind ArkEcosystem:mainnet.
dated Merge pull request #97 from dated/rebuild-threshold
increases rebuild thresholds
Latest commit 5de5c4a Oct 9, 2018
Permalink
Failed to load latest commit information.
docs Typo fix. Apr 11, 2018
helpers adds voteString format Sep 18, 2018
logic Merge pull request #88 from dated/security-patches Sep 19, 2018
logs Adding logs / pids directories. Aug 6, 2016
modules increases rebuild thresholds Oct 9, 2018
optional improved dashboard Mar 3, 2017
pids Adding logs / pids directories. Aug 6, 2016
private Formatting Readme. May 4, 2018
schema Changing constants.js to constants.json. Nov 14, 2017
sql Merge pull request #89 from dated/vote-index Sep 19, 2018
tasks Changed timestamp in genesisBlock. Aug 30, 2018
test Merge branch 'development' into development Jun 13, 2018
views small fixes Mar 9, 2017
.gitignore Adding private folder README.md. Apr 25, 2018
.gitmodules Update .gitmodules Jul 7, 2017
.jshintignore Ignoring file. Aug 22, 2016
.jshintrc Adding global. ✓ 54 files lint free. Aug 22, 2016
BPL_Node_Install_Script.sh Update BPL_Node_Install_Script.sh Sep 26, 2017
Gruntfile.js 3rd iteration with smart transaction application Jan 27, 2017
LICENSE updates README.md Sep 18, 2018
README.md Merge branch 'testnet' into bpl-mainnet Oct 1, 2018
Vagrantfile Update Vagrantfile Jul 7, 2017
app.js Adding tokenShortName in network.json. Apr 2, 2018
banner.png updates README.md Sep 18, 2018
build Initial commit. Feb 1, 2016
config.json first iteration on bridge app Mar 1, 2017
config.mainnet.json bumps version Oct 9, 2018
config.testnet.json Changes db params in config.testnet.json Jun 26, 2018
constants.json Reverts QoS. Jul 26, 2018
genesisBlock.devnet.json Updates config and genesisBlock for Devnet. Sep 20, 2018
genesisBlock.json first iteration for HD wallet support version Jan 11, 2017
genesisBlock.mainnet.json Config and genesis files for bpl-mainnet. Aug 28, 2017
genesisBlock.testnet.json Adding genesis and config files for testnet 201 nodes. Aug 27, 2017
logger.js modifying the logger to refresh after 100MB Jun 26, 2018
logo.txt Removed new line characters in logo. Feb 9, 2018
networks.json Updates explorer link in network.json. Jul 26, 2018
package-lock.json updating package.json Jul 10, 2018
package.json changing bpljs version Jul 23, 2018

README.md

BPL Node

Github Latest Release License: MIT

Simple Blockpool Node Installation

Download Blockpool Commander

https://github.com/blockpool-io/BPL-node/blob/bpl-mainnet/BPL_Node_Install_Script.sh

Open up your terminal and type

./BPL_Node_Install_Script.sh

Let the script finish.

Add configurations for your node

# Change the following in config.mainnet.json:

“address“: “set your IP”
“database”: “set database name”
“user”: “set database user”
“password”: “set database password”
“list”: [
  {
    “ip”: “set your IP address”
    “port”: “set the port on which your node will be running”
  },
  {
    “ip”: “Set seed node IP address”
    “port”: “set the port on which seed node will be running”
  }
]

Launch BPL node

Mainnet

forever start app.js -c config.mainnet.json -g genesisBlock.mainnet.json

Testnet

forever start app.js -c config.testnet.json -g genesisBlock.testnet.json

Detailed steps for setting up BPL node on Linux, Windows and Debian

Linux/Ubuntu (We have tested with Ubuntu v16.0.4)

Install essentials

sudo apt-get update
sudo apt-get install -y curl build-essential python git

Install Node.js (min version: 6.9.2)

sudo apt-get install -y nodejs
sudo apt-get install -y npm
sudo npm install -g n
sudo n 6.9.2

Install grunt-cli (globally)

sudo npm install grunt-cli -g

Install PostgreSQL (min version: 9.5.2)

sudo apt-get install -y postgresql postgresql-contrib
sudo -u postgres createuser -P --createdb $USER
createdb ‘Database Name’  (this should match with the database name from config file)

Clone BPL Node repository

git clone https://github.com/blockpool-io/BPL-node.git   (make sure you have git installed)
cd BPL-node
git checkout bpl-mainnet

Install node modules

sudo apt-get install -y libpq-dev
npm install libpq secp256k1
npm install
npm install forever -g

Add configurations for your node

# Change the following in config.mainnet.json:

“address“: “set your IP”
“database”: “set database name”
“user”: “set database user”
“password”: “set database password”
“list”: [
  {
    “ip”: “set your IP address”
    “port”: “set the port on which your node will be running”
  },
  {
    “ip”: “Set seed node IP address”
    “port”: “set the port on which seed node will be running”
  }
]

Launch BPL node on Mainnet

forever start app.js -c config.mainnet.json -g genesisBlock.mainnet.json

Launch BPL node on Testnet

forever start app.js -c config.testnet.json -g genesisBlock.testnet.json

Windows 7

Install essentials

Add following environment variable

PATH as C:\Program Files\PostgreSQL\9.5\bin
(Windows Start -> Right click on Computer → Advanced System settings → Environment variables)
Modify the file ‘pg_hba’, present at the location  C:\Program Files\PostgreSQL\9.5\data\pg_hba
Replace ‘md5’ with ‘trust’  under ‘METHOD’ column

Restart psql

My Computer → Manage → Services and Application → Services → Restart postgres service
Alter postgres user:
psql -U postgres
alter user postgres with password 'User Password'
Create database:
Create database ‘Database Name’ Name’  (this should match with the database name from config file)

Clone repository

git clone https://github.com/blockpool-io/BPL-node.git (make sure you have git installed)
cd BPL-node
git checkout bpl-mainnet

Install node modules

npm install --global --production windows-build-tools
npm install libpq secp256k1
npm install

Add configurations for your node

# Change the following in config.mainnet.json:

“address“: “set your IP”
“database”: “set database name”
“user”: “set database user”
“password”: “set database password”
“list”: [
  {
    “ip”: “set your IP address”
    “port”: “set the port on which your node will be running”
  },
  // For 5 Windows nodes, seed IP is already configured in the shared 5 files so no need of adding this entry
  {
    “ip”: “Set seed node IP address”
    “port”: “set the port on which seed node will be running”
  }
]

Launch BPL node on Mainnet

npm run start:bplmainnet

Launch BPL node on Testnet

npm run start:bpltestnet

Debian (We have tested with Jessie 8.7)

Install essentials

sudo apt-get update
sudo apt-get install -y curl build-essential python git

Install Node.js (min version: 6.9.2)

sudo apt-get install -y nodejs
sudo apt-get intsall -y npm
sudo npm install -g n
sudo n 6.9.2

Install grunt-cli (globally)

sudo npm install grunt-cli -g

Install PostgreSQL (min version: 9.5.2)

Since Debian 8.8/8.8 installs psql 9.4.12 , we will need to add the repository manually to install psql 9.5

wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
sudo apt-get update
sudo apt-get install -y postgresql-9.5
sudo -u postgres createuser –createdb $USER
createdb ‘Database Name’  (this should match with the database name from config file)

Clone BPL Node repository

If git is not found, following adds the repository manually:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E1DD270288B4E6030699E45FA1715D88E1DF1F24
sudo su -c "echo 'deb http://ppa.launchpad.net/git-core/ppa/ubuntu trusty main' > /etc/apt/sources.list.d/git.list"
sudo apt-get -y update
sudo apt-get install -y git

git clone https://github.com/blockpool-io/BPL-node.git   (make sure you have git installed)
cd BPL-node
git checkout mainnet

Install node modules

sudo apt-get install libpq-dev
npm install libpq secp256k1
npm install

Add configurations for your node

# Change the following in config.mainnet.json:

“address“: “set your IP”
“database”: “set database name”
“user”: “set database user”
“password”: “set database password”
“list”: [
  {
    “ip”: “set your IP address”
    “port”: “set the port on which your node will be running”
  },
  {
    “ip”: “Set seed node IP address”
    “port”: “set the port on which seed node will be running”
  }
]

Launch BPL node on Mainnet

npm run start:bplmainnet

Launch BPL node on Testnet

npm run start:bpltestnet

Authors

License

MIT © Blockpool