Mining node and rovers for the five genesis chains of Block Collider.
Switch branches/tags
Clone or download
mmpmm Suggested Static Port Update
Update suggested static ports to include 16061 and 16060 for discovery and seeding.
Latest commit d8f811d Aug 30, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.appveyor Integrate appveyor Apr 18, 2018
.docker Dockerfiles for rendezvous-webrtc & rendezvous-websocket Apr 23, 2018
.github Update ISSUE_TEMPLATE.md May 7, 2018
.hooks Better documentation of pre-push hook Feb 28, 2018
.systemd Enable logging Apr 23, 2018
app Remove little red bastards Jun 10, 2018
bin CLI Cleanup Apr 26, 2018
config updated config Jun 11, 2018
doc Added pattomada-miner.R script to doc May 13, 2018
examples Merge branch 'master' of github.com:blockcollider/bcnode into new-rpc Feb 23, 2018
flow-typed/npm Update / add new flow typed definitions Apr 26, 2018
native Benchmark integration Apr 19, 2018
protos Change BcBlock.totalDistance to string Jun 7, 2018
public Mark blocks with wrong previousHash Jun 9, 2018
rust/bcrust-core Change BcBlock.totalDistance to string Jun 7, 2018
scripts Docker image build has no prerequisites now Apr 27, 2018
snippets miner_new::mine consumes and produces protobufs Apr 14, 2018
src Introduce council mode Jun 11, 2018
test/data Add testing data Apr 19, 2018
webpack WIP May 12, 2018
.HEADER HEADER template for ... headers Feb 23, 2018
.appveyor.yml Use node 8 Apr 26, 2018
.babelrc P2P refactor May 7, 2018
.dockerignore Docker image build has no prerequisites now Apr 27, 2018
.editorconfig Add http://editorconfig.org/ Jan 7, 2018
.esdoc.json New .esdoc configuration Mar 2, 2018
.eslintignore Added ESLint Jan 7, 2018
.eslintrc.json Pre ES6 push Feb 18, 2018
.flowconfig More explicit settings in .flowconfig Jun 5, 2018
.gitignore WIP for Mr. P Jun 1, 2018
.prettierrc Polyglot & Formatting Feb 20, 2018
.travis.yml Create folder for logs in CI Apr 24, 2018
CHANGELOG.md FIX: Use config module, not config.json Jun 7, 2018
CODE_OF_CONDUCT.md Add CODE_OF_CONDUCT.md Feb 12, 2018
Dockerfile Do not cat genesis.raw.json May 2, 2018
LICENSE Update LICENSE Feb 28, 2018
README.md Suggested Static Port Update Aug 30, 2018
RELEASE.md Better build steps Apr 13, 2018
package-lock.json updating engine to support mining with promises Jun 10, 2018
package.json Bump version to 0.6.1 - council mode Jun 11, 2018
ui-version.png Request more info about versions in Issue template May 7, 2018
yarn.lock Introduce council mode Jun 11, 2018

README.md

Block Collider Node

Release Candidate 2 - "Deep Space"

Mining node with built-in block rover, DHT, and peer discovery.

Block Collider Advanced Community

For technical & mining questions visit: https://www.t.me/blockcollideradvanced

Status

Build Status Build status

System Requirements

OS

  • Ubuntu 16.04 (GNU)
  • Mac OSX 10.11+ (Debian)

Getting started

  • $ - lines starting with this symbol ($) should be executed in bash/terminal/command-line/cmd.exe WITHOUT symbol ($) itself
  • # - lines starting with this symbol (#) are comments and SHOULD not be executed

Environment variables

Following environment variables can be used for advanced tweaking

Name Description
BC_CONFIG Path to custom config file; string
BC_DEBUG Collect data in _debug folder; true/false
BC_DATA_DIR Data directory; path
BC_GRPC_HOST gRPC bind host; IP
BC_GRPC_PORT gRPC port; 0..65535
BC_LOG Override log level; debug/info/warn/error
BC_MINER_KEY Miner key; string
BC_MONITOR Print Stats periodically; true/false
BC_UI_PORT Web UI port; 0..65535
BC_P2P_PASSIVE Be passive, ignore discovered peers

Run official docker image from public repo

Backround/Daemon

$ docker run --rm --name bcnode -d -p 3000:3000 -p 16061:16061 -p 16060:16060 blockcollider/bcnode:latest start --ws --rovers --ui --node --miner-key ABCDEF

Foreground

$ docker run --rm --name bcnode -p 3000:3000 -p 16061:16061 -p 16060:16060 blockcollider/bcnode:latest start --ws --rovers --ui --node --miner-key ABCDEF

Build docker image locally

# Clone sources
$ git clone https://github.com/blockcollider/bcnode.git

# Change folder
$ cd bcnode

# Switch to release branch
$ git checkout release

# Build image locally
$ docker build -t blockcollider/bcnode .

Build from source

Prerequisites

# Clone sources
$ git clone https://github.com/blockcollider/bcnode

# Change folder
$ cd bcnode

# Install dependencies
$ yarn

# Build bcnode
$ yarn run dist

Run From Command Line

Show the help

$ ./bin/cli start -h

  Usage: start [opts]

  Start Block Collider

  Options:

    --miner-key [key]  Miner key
    -n, --node         Start P2P node
    --rovers [items]   start rover (default: btc, eth, lsk, neo, wav)
    -R, --no-rovers    do not start any rover
    --rpc              enable RPC
    --ui               enable Web UI
    --ws               enable WebSocket
    -h, --help         output usage information

Startup node with rover GUI & BTC & LSK rovers

$ ./bin/cli start --ui --ws --rovers btc,lsk

Run node with all rovers, GUI, and socket stream

$ ./bin/cli start --ui --ws

Development

npm run watch

Documenation

Generate documentation

$ yarn run doc

Open generated documentation

$ open ./docs/index.html

Rovers (Alphabetical)

  • Bitcoin Blockchain
  • Ethereum Blockchain
  • Lisk Blockchain
  • Neo Blockchain
  • Waves Blockchain

Block Collider Developer Community

Helpful community tools will be added: https://github.com/blockcollider/awesome-blockcollider

Help & Support