Skip to content

A pool dashboard for the cactus-tbw core plugin, ported from core3-tbw by block producer bfx.

License

Notifications You must be signed in to change notification settings

Bx64/cactus-pool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dashboard for cactus-tbw Solar Core plugin

Prerequisites

  1. Install pip and python3.6 or above

  2. Install pm2

npm install pm2@latest -g
# or
yarn global add pm2

Clean / New Installation

# 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

Configuration & Usage

  1. 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.

  2. 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.

Available Configuration Options

[static]

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)

[delegate]

Option Default Setting Description
delegate delegate Delegate name

[pool]

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

[logging]

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

To Do

  • TBD

Changelog

0.0.1

  • Initial release

Security

If you discover a security vulnerability within this package, please open an issue. All security vulnerabilities will be promptly addressed.

Credits

License

MIT © galperins4

About

A pool dashboard for the cactus-tbw core plugin, ported from core3-tbw by block producer bfx.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published