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

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dashboard for cactus-tbw Solar Core plugin

Prerequisites

Python3.8 (native on Ubuntu 20.04+), python3-pip, npm and pm2 packages are required. Install pip, npm & pm2 with a sudo-user:

sudo apt install python3-pip npm -y

npm install pm2@latest -g

Clean / New Installation

# Install and sync relay server + install and configure cactus-tbw core plugin
# See respective repositories for instructions on those installations
# After you finish setting up your server and plugin, continue.

# Clone cactus-pool repository
git clone https://github.com/Bx64/cactus-pool && cd ~/cactus-pool

# Install requirements
pip3 install -r requirements.txt

# 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

# With your cactus-tbw core plugin fully synced, run the first pending balances check manually (only required for initialisation!)
cd ~/cactus-pool/core && python3 poolinit.py

# Start the dashboard with pm2
cd ~/cactus-pool/core && pm2 start pool.json

# Congratulations! Your pool dashboard will now automatically update the pending balances every 10 minutes.

Configuration & Usage

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

[blockproducer]
blockproducer = blockproducer

[pool]
pool_ip = xx.xx.xx.xx
pool_port = 5000
pool_template = bfx
explorer = https://testnet.solarscan.com
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

Available Configuration Options

[static]

Option Default Setting Description
atomic 100000000 Atomic value - do not change
network testnet testnet or mainnet
username username Operating System username

[blockproducer]

Option Default Setting Description
blockproducer blockproducer Block producer username

[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://testnet.solarscan.com The address of the explorer for the network
coin tSXP tSXP or SXP
proposal1 https://delegates.solar.org/delegates/xxxx Link to block producer 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

Custom error pages

You can edit the template pages to create your own error messages, or use the templates as they are.

To Do

  • TBD

Changelog

0.1.0

  • 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