Skip to content
This repository has been archived by the owner on Oct 29, 2022. It is now read-only.
/ lpt-miner Public archive

A LivePeer Multi ETH Address Multi Merkle Miner

Notifications You must be signed in to change notification settings

bisontrails/lpt-miner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lpt-miner

A LivePeer Multi ETH Address Multi Merkle Miner

lpt-miner is a simple node app that interacts with the MultiMerkleMine Ethereum contract. As of July 26th, 2018, the Livepeer protocol specifies that 2.44 LPT can be generated into 2.59M Ethereum accounts totaling a release of 6.3M LPT. These tokens are available for anyone to claim on a first-come first-serve basis. This script was built in order to automatically claim those tokens. For more info about LivePeer Merkle Mining check out this link.

lpt-miner can mine simultaneously across any number of Ethereum addresses. It creates, signs, submits and monitors transactions for each address it is configured to use. When a transaction is completed, it automatically submits a new one. It monitors gas prices and adjusts automatically to the current safe low gas price returned from ethgasstation.info.

Prerequisites

Git

Have the git command line tool installed

Node & npm

Make sure to have node v8 and npm installed before working with this repo

Redis server

In order to run lpt-miner you need a local redis server running. You don't need to do anything custom just get it running. Install redis-server using your favorite package manager (apt-get, homebrew, etc) or you can install directly although this is a bit harder. When it is installed just open a new terminal or run:

redis-server &

Clone Repo

Make sure you have git installed and clone the repo --

git clone git@github.com:BisonTrails/lpt-miner.git

Then move into the directory:

cd lpt-miner

Installation

npm install

Setup

UTC JSON Keystore

Have your UTC JSON keystore files in a directory that the script has access to. These files are generated when you create an Ethereum wallet and can be used as is. For example myetherwallet gives you one of these keystore files. For more on keystore files, check out this link.

  • Make sure you have some ETH in your wallet!

.env file setup

There is a .env.example file. Make a copy of this file and save it as .env. You can then update that file with your own address information and lpt-miner settings. The environment settings are described below --

Environment Settings

MAX_GAS_PRICE - Maximum gas price in Wei that you would like txn-looper to submit txns at
MIN_GAS_PRICE - Minimum gas price in Wei that you would like txn-looper to submit txns at

KEY_LOCATION - This is where your keystore folder is. Make sure that this folder has another folder in it called 'keystore' where your UTC JSON key files are stored

NUMBER_ADDRESS_PER_TXN - This is the number of addresses the script will mine per transaction. Maximum of 40, minimum of 1.

YOUR_ADDRESSES - A comma seperated list of Ethereum addresses to mine with
KEY_PASSWORDS - A three-comma seperated list of passwords for each of your keys, in the same order as your keys
LAST_TXNS - A comma seperated list of the last *outgoing* transaction from your Ethereum addresses, in the same order as your keys

Start mining!

You should be all set and ready to mine lots of LPT to bond to our LivePeer transcoder (or any one elses :-D) --

npm start

Once you have mined LPT, to begin participating in the network even more make sure to bond to a Transcoder (like ours). Through using a browser wallet plugin like MetaMask you can visit any transcoder page and bond directly to a transcoder which allows you to earn inflation and rewards when that transcoder completes jobs.

Feedback welcome!

Please give us feedback or ask questions in the issues for this repo. We will try to support it as best as we can.

Shotouts

Thanks to the LivePeer team for working on the whole awesome network and the MerkleMine library. And thanks to Chris Remus for helping me debug through installing and running this app on other computers besides my own.

About

A LivePeer Multi ETH Address Multi Merkle Miner

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published