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, orhost 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for create-tomochain-masternode-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3e095f1df80fadd3b120ac289d68261212717d2dc005b7f0c31300760f8787f |
|
MD5 | 3f8b36c2d44b37210ef12f9245117648 |
|
BLAKE2b-256 | 81db36f0eeab9f05d813852e4b60ad8eeef92f76f645bb1fe368afae132fe46e |
Hashes for create_tomochain_masternode-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b22d6e401ffa9074660eb0ad3aafb501873cd21dd90371bbb177ee3268ecf205 |
|
MD5 | 12ce19d294edd78e16d280f088c66ab5 |
|
BLAKE2b-256 | ab006f6d8bfe1c00570ee9a2e7f8a9595530953e8a462a759c683ad70d412224 |