Setup Lotus Node
Windows
- Download the lotus daemon and install it somewhere convenient. It'll create shortcuts in your start menu.
- When you start the wallet, it'll ask you where to place the blockchain data.
- Don't worry about it telling you about hundreds of GBs of data, the Lotus blockchain is just a few MB big, and we haven't updated the texts yet.
- You can pick whatever directory you want here, but it's suggested to leave the default one.
- We suggest to uncheck the checkbox for "Discard blocks after verification"; Lotus is still to small for that to be beneficial. It might be useful in a few years though.
- It will then start the wallet and download the blockchain, this might take a minute or two depending on your internet speed, but shouldn't take much longer than that.
- Backup your wallet.dat: Click on "File" > "Backup Wallet" and store it on a USB drive or somewhere on a different device. Keep it hidden though, people might be able to steal you Lotus!
- You're now part of the Lotus network, congrats!
In order to mine, the wallet has to have the RPC server enabled.
- In the Lotus wallet, click on "Settings" > "Options..." > "Open Configuration File"
- Select any text editor of your choice, e.g. Notepad
- The config file might already have some contents if you previously used Lotus on the testnet. In this case, you can create a backup of the file and otherwise replace it with the following.
- Paste the following into the config file:
printtoconsole=1
server=1
rpcuser=lotus
rpcpassword=lotus
[test]
minimumchainwork=0
server=1
rpcuser=lotus
rpcpassword=lotus
- Save the config file
- Close the Lotus wallet and start it again
Mac OS
Download OSX lotus daemon
- Run
mkdir -p '~/Library/Application Support/Lotus/' - Edit
~/Library/Application Support/Lotus/lotus.conf - Paste in the following:
printtoconsole=1
server=1
rpcuser=lotus
rpcpassword=lotus
[test]
minimumchainwork=0
server=1
rpcuser=lotus
rpcpassword=lotus
- Start Lotus-QT.app
Linux
Download Linux lotus daemon
- Run
mkdir ~/.lotus - Edit
~/.lotus/lotus.conf - Paste in the following:
printtoconsole=1
server=1
rpcuser=lotus
rpcpassword=lotus
[test]
minimumchainwork=0
server=1
rpcuser=lotus
rpcpassword=lotus
- Start lotusd if you are running on a server, or lotus-qt if you are running desktop Linux.
Mining guide
Currently, we do not distribute binaries of the lotus-gpu-miner so mining will require setting up a rust development environment.
Get your wallet address
In order to mine, you need to have an address where to send the mined Lotus to.
- In the Lotus wallet, click on the "Receive" tab
- Enter something descriptive in the Label text box, like "My mining address"
- Leave the other fields as is (you can add a Message if desired)
- Click "Create new receiving address"
- It'll open a new window, click on Copy Address at the bottom, which will copy your Lotus address
- Close the window. You can see there's an entry of your address at the bottom now. You can get the previous window again by double clicking on it
Windows
- Download the windows installer for the Lotus GPU Miner and install Lotus GPU Miner somewhere convenient. It'll create shortcuts in your start menu.
- Open Lotus GPU Miner
- You might need to install OpenCL if this fails:
- For AMD, there's a light installation: OCL_SDK_Lite
- For NVIDIA, install the CUDA SDK (Download "exe (local)" version)
- Copy you mining address from the previous step into "Miner address:"
- Select the GPU you want to use for mining
- Click "Apply & Mine"
- It should now start mining! Good luck with your first blocks!
- If you ran into problems, join our telegram group.
Mac And Linux
Mac and linux do not currently have an installer, and will require setting up the development environment.
- Install rustup
- Install the Open CL libraries.
- For Mac, you should already have the OpenCL drivers installed by default.
- Linux will require installing OpenCL packages for your particular distribution and graphics card
- Download the latest mining code from Github and extract to desktop: https://github.com/LogosFoundation/lotus-gpu-miner/archive/refs/heads/master.zip
- Extract it somewhere
- Create the configuration file with this command:
mkdir -p ~/.lotus-miner - Within the
~/.lotus-minerfolder, create a file called config.toml and paste the following contents:
mine_to_address = "lotus_PASTE_YOUR_ADDRESS_HERE"
gpu_index = 1
kernel_size = 18
rpc_url = "http://127.0.0.1:10604"
- Keep this file open, you will need to adjust the
gpu_indexandmine_to_addressparameters later. - Navigate to the folder where you extracted the
lotus-gpu-minersource code. - Enter
cargo runon the terminal prompt within the lotus-gpu-miner directory. - It will print out a list of "Platforms" one of which will be your gpu. Make note of the index, and returning to the
config.tomlfile, update thegpu_indexto match that. - In the Lotus-QT software goto the "Receive" tab, and generate a new receive address. Copy and paste that over
lotus_PASTE_YOUR_ADDRESS_HERE - Save, and type
cargo runagain on the command prompt. - If you ran into problems, join our telegram group.
Success
If all is successful, you should see the following output to indicate that you are now mining:
Running target\debug\lotus-miner.exe
Started mining on chain tip: 000000001331242a3179fde731b9d1c8e2c6e535625538262ad8786dedfcb8fc
Tuning
- You can play around with
kernel_sizeinconfig.tomlin the config to squeeze out a higher hashrate - If you have multiple GPUs, you can change
gpu_indicesto address the GPU you want to mine on. Currently, only one GPU percargo runis supported, so you'd need to run multiple command prompts to mine on multiple GPUs. You can see all available devices and their index when the program starts.