Dashboard for cactus-tbw Solar Core plugin
-
Install pip and python3.6 or above
-
Install
pm2
npm install pm2@latest -g
# or
yarn global add pm2
# Install and sync relay server + cactus-tbw core plugin
# Clone cactus-pool repository
git clone https://github.com/Bx64/cactus-pool && cd ~/cactus-pool
# Install and activate virtual environment
python3 -m venv .venv && . .venv/bin/activate
# Install requirements
pip3 install -r requirements.txt
# Deactivate virtual environment
deactivate
# Clone pool config example
cp ~/cactus-pool/core/config/pool_config.ini.example ~/cactus-pool/core/config/pool_config.ini
# Fill out config (see below)
nano ~/cactus-pool/core/config/pool_config.ini
# Setup a cronjob to update the unpaid balances (remember to change $USER)
*/15 * * * * cd /home/$USER/cactus-pool/core && python3 poolupdate.py
# With your cactus-tbw core plugin fully synced, run the first pending balances check manually
cd ~/cactus-pool/core && python3 poolupdate.py
# Start the dashboard with pm2
cd ~/cactus-pool/core && pm2 start pool.json
-
The cronjob is required to not have your node be forced to re-run the pending payments check on every refresh, as
cactus-tbw
is a core plugin. -
After the repository has been cloned you need to open the config and change it to your liking (see Available Configuration Options). Below is the example config. You need to update the values of
network
,username
,delegate
and the values of the items under[pool]
.
[static]
atomic = 100000000
network = testnet
username = username
[delegate]
delegate = delegate
[pool]
pool_ip = xx.xx.xx.xx
pool_port = 5000
pool_template = bfx
explorer = https://texplorer.solar.org
coin = tSXP
proposal1 = https://delegates.solar.org/delegates/xxxx
proposal2 = https://yy.yy.yy
proposal2_lang = CC
[logging]
loglevel = INFO
formatter = %(levelname)s %(message)s
Python 3.6+ is required.
Option | Default Setting | Description |
---|---|---|
atomic | 100000000 | Atomic value - do not change |
network | testnet | Testnet or mainnet |
username | username | This is the postgresql database username (usually your OS username) |
Option | Default Setting | Description |
---|---|---|
delegate | delegate | Delegate name |
Option | Default Setting | Description |
---|---|---|
pool_ip | xx.xx.xx.xx | IP of the node the pool is installed on |
pool_port | 5000 | Port for pool |
pool_template | bfx | Set the pool website template - only option |
explorer | https://texplorer.solar.org | The address of the explorer for the network |
coin | tSXP | tSXP or SXP |
proposal1 | https://delegates.solar.org/delegates/xxxx | Link to delegate proposal |
proposal2 | https://yy.yy.yy | Link to the proposal in different language |
proposal2_lang | CC | Language (code) of the second proposal |
Option | Default Setting | Description |
---|---|---|
loglevel | INFO | Can be turned to DEBUG in order to have full debug outputs |
formatter | %(levelname)s %(message)s | Log formatter |
- TBD
- Initial release
If you discover a security vulnerability within this package, please open an issue. All security vulnerabilities will be promptly addressed.