Skip to content
metalicjames edited this page Nov 2, 2014 · 7 revisions

Welcome to the stratum-mining-Lyra2RE wiki!

Downloading

We need to fetch stratum-mining and some additional code for a stratum implementation:

git clone https://github.com/metalicjames/lyra2re-hash-python.git
git clone https://github.com/metalicjames/stratum-mining-Lyra2RE.git
git clone https://github.com/ahmedbodi/stratum.git

That covers the download. Lets go ahead and prepare the software!

Installation

We need to install lyra2re-hash-python and stratum:

cd ~/lyra2re-hash-python
sudo python setup.py install

cd ~/stratum
sudo python setup.py install

Configuration

Now that we have everything installed we can configure stratum-mining-Lyra2RE to run with our testnet:

cd ~
cp stratum-mining-Lyra2RE/conf/config_sample.py stratum-mining-Lyra2RE/conf/config.py
vi stratum-mining-Lyra2RE/conf/config.py

You will need to adjust some settings for this to work:

CENTRAL_WALLET = 'Your_Valid_Vertcoin_Address'
[...]
COINDAEMON_TRUSTED_HOST = 'localhost'
COINDAEMON_TRUSTED_PORT = 15888
COINDAEMON_TRUSTED_USER = 'testnet'
COINDAEMON_TRUSTED_PASSWORD = 'testnet'
COINDAEMON_ALGO = 'Lyra2RE'
COINDAEMON_Reward = 'POW'
COINDAEMON_TX = 'no'
[...]
DATABASE_DRIVER = 'mysql'
DB_MYSQL_HOST = 'localhost'
DB_MYSQL_DBNAME = 'mpos'
DB_MYSQL_USER = 'root'
DB_MYSQL_PASS = 'root'
[...]
POOL_TARGET = 16
[...]
SOLUTION_BLOCK_HASH = True

Starting stratum-mining

This is the easy part, but don't do it till you set up the database in the next steps. Change to the stratum-mining folder and fire up the service:

cd stratum-mining-Lyra2RE
twistd -ny launcher.tac

If you want to run it in the background you can remove the -ny and replace it with -y:

twistd -y launcher.tac
Clone this wiki locally