Simple LPT miner implementation. Pay gas to mine LPT automagically. Creates merkle proofs and submits them to the contract. Set the .env file based on how many times you want to loop through the mining logic. Tested on macOS. Likely works on linux too but your mileage may vary.
- NodeJS >= 8.4.0
- Redis
- An ethereum keystore file
- If you don't have redis installed, run
brew install redis - Start your redis server
redis-server - In this directory, run
npm install - Clone https://github.com/livepeer/merkle-mine.git in an adjacent directory and run
npm install. - In this directory, at the top level, create a new directory called
keys/. In this newkeys/directory, copy over your ethereumkeystore/folder with the keystore file inside. Keystore file should use the canonical file name scheme e.g.UTC--2015-08-11T061353.359Z--address. If you need to generate a keystore file, I recommend using MyCrypto. - Set your
.envfile appropriately. There is a.env.exampleincluded in this repo. You can just set your values in there and then rename the file to remove the.exampleextension. Remember, higher gas = more expensive to mine, but no risk of your transactions hanging in limbo while miners chuckle at your low gas price. I recommend checking what the Standard (<5m) gas price is on Ethgasstation and setting yourGAS_PRICEa bit higher. - run
node just-mine.js