title | keywords | last_updated | sidebar | permalink | folder |
---|---|---|---|---|---|
Run a Node |
node |
mydoc_sidebar |
/essentials/run-a-node |
essentials |
A full-node of bitmarkd consists of a bitmarkd
, a recorderd
, a payment system, a litecoind
, and a bitcoind
. The bitmarkd
service verifies and records transactions on the Bitmark blockchain while the recorderd
service computes the Bitmark proof-of-work algorithm that allows nodes to compete to win blocks on the Bitmark blockchain.
This tutorial explains how to set up the bitmarkd
and/or the recorderd
services by hand.
- You must have and know your public IP address.
- You must have a Bitcoin and a Litecoin address for receiving mining rewards.
- Your environment must be open for incoming connections through port 2136.
- Hardware minimum requirements:
- memory >= 2 GB
- free disk space >= 20 GB
- broadband Internet connection with upload speeds of at least 400 kilobits (50 kilobytes) per second
Bitmark nodes can be installed on a variety of different operating systems, with pre-built packages available for FreeBSD, Ubuntu, and macOS.
If some special functionality is required, or there are no available packages yet for your OS, a Bitmark node can also be compiled from source files. For more information, see Building From Source.
$ pkg install bitmark
$ service bitmarkd keygen
$ service recorderd keygen
$ add-apt-repository -y ppa:bitmark/bitmarkd
$ apt update
$ apt install bitmarkd
You need to install Brew:
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Visit the Brew site for more information on the installation and configuration options.
$ brew tap bitmark-inc/bitmark
$ brew install bitmarkd
See detailed instructions here.
The installation includes a sample configuration which has some embedded instructions for quick setup, and only a few items near the beginning of the file need to be changed for basic use. The sample configuration could be found at:
OS | Sample configuration file path |
---|---|
FreeBSD | /usr/local/etc/bitmarkd.sample |
Ubuntu | /etc/bitmarkd.sample |
macOS | /usr/local/etc/bitmarkd/bitmarkd.sample |
Copy the sample configuration.
$ cp ${SAMPLE_CONFIGURATION_PATH} ~/.bitmarkd.conf
Edit the bitmarkd.conf
to set up appropriate chain, cryptocurrencies addresses, IP addresses, and ports.
$ ${EDITOR} ~/.bitmarkd.conf
Finally, start the program.
$ bitmarkd --config-file=~/.bitmarkd.conf start
For more information on bitmarkd
sub-commands, run the following command:
$ bitmarkd --config-file=~/.bitmarkd.conf help
recorderd
is the mining program for the Bitmark Property System, which can optionally be run to support the Bitmark blockchain (and to earn bitmarks on blocks).
Setting up recorderd
is similar to setting up bitmarkd
.
First, setup and edit your configuration file. For mining using the local bitmarkd
, the sample configuration should work without changes.
OS | Sample configuration file path |
---|---|
FreeBSD | /usr/local/etc/recorderd.conf |
Ubuntu | /etc/recorderd.conf |
macOS | /usr/local/etc/recorderd/recorderd.conf |
Copy the sample configuration.
$ cp ${SAMPLE_CONFIGURATION_PATH} ~/.recorderd.conf
Start the program.
$ recorderd --config-file=~/.recorderd.conf start
For more information on recorderd
sub-commands, run the following command:
$ recorderd --config-file=~/.recorderd.conf help