Skip to main content

Set up a TomoChain masternode by running one command.

Project description

create-tomochain-masternode

Set up a TomoChain masternode by running one command.

Installation

Requires:

  • Docker
  • Docker-compose

Binary

Download create-tomochain-masternode from the latest release.

chmod +x create-tomochain-masternode
mv create-tomochain-masternode /usr/local/bin/

Pypi

Requires Python >= 3.6.

pip3 install --user create-tomochain-masternode

Usage

Usage: create-tomochain-masternode [OPTIONS] NAME

  Set up a TomoChain masternode by running one command.

Options:
  --testnet  Testnet instead of mainnet.
  --version  Show the version and exit.
  --help     Show this message and exit.

Simply run create-tomochain-masternode with the name of your masternode as arguemnt NAME.

create-tomochain-masternode tomochain09

Follow the wizard by replying to the following questions:

  • Coinbase private key: Your masternode coinbase account private key. This is the account you configured your masternode with, not the one holding your funds.
  • Storage: Either docker volume if you want to use one, or host directory if you want to bind mount a specific location of your filesystem.
  • Chaindata: The name of the docker volume that will be used, or the path to the directory to bind mount, depending on your choice to the last question.
  • Expose RPC: If you want to expose or not port 8545. It is the RPC api to your node. It should be only exposed if you have a specific reason to do so. The masternode owner is responsible of proxing and securing the RPC api as it should not be directly exposed to the internet.
  • Expose WebSocket: If you want to expose or not port 8546. It is the WebSocket api to your node. It should be only exposed if you have a specific reason to do so. The masternode owner is responsible of proxing and securing the WebSocket api as it should not be directly exposed to the internet.
  • Loging level: Set the logging level of the TomoChain container to error, info or debug. Info or Error is usually a good logging level. Only use the debug level if you a good reason, it will generate a lot of output.

Once finished, you will get a folder named after your masternode (in our case "tomochain09") with two files.

docker-compose.yml which contains the instructions for docker compose to know how to configure your masternode container.

.env which contains the configuration made from your answers to the question.

Now that we have docker-compose configured to run our node, we just need to start it.

docker-compose up -d

You can check that your masternode is running with the ps sub-command.

docker-compose ps

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

create-tomochain-masternode-1.0.0.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

create_tomochain_masternode-1.0.0-py3-none-any.whl (12.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page