Solo Mining LiteCash on Windows

Litecash, Mining

 

So you want to solo mine LiteCash? Check out the step-by-step instructions below. You should be familiar with the Windows command line interface.

We tried to make the instructions as simple as possible. If there are any improvements you feel we can make please feel free to comment on this post or let us know on Telegram, Discord, or Reddit!


Creating and Installing Certificates

  1. Go download OpenSSL and install it (use defaults).
  2. Navigate to C:\Program Files\OpenSSL-Win64\bin and right click openssl.exe and select “Run as Administrator”
  3.  At the OpenSSL prompt paste the following:
    1. req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout stratum.key -out stratum.crt
    2. Press Enter
  4.  Fill in the requested information. The important part is the common name (name of the pc running the miner and node)
  5.  Go back in to C:\Program Files\OpenSSL-Win64\bin and you will find stratum.crt and stratum.key. Remember this for later.
  6. Right click on the certificate.crt file and select Install Certificate
  7. Follow the prompts on the certificate import wizard as show below.
    1. Now right click the start menu, select run, and type in “certmgr.msc”
    2. This opens up the Windows certificate manager. Under Personal > Certificates you can see the newly installed certificate.

Download and Install the Wallet

  1.  Now that you have the certificate click here to download the LiteCash wallet CLI (command line interface). Be sure to choose the 64bit or 32bit depending on the architecture of your OS. We need this as it requires a full node with a custom configuration to work.
  2.  Now extract the zip file you just downloaded to your location of choice (it doesn’t really matter where). 
  3.  Now open a command prompt (right click on the start menu, select run, type in CMD, and press enter)

Initialize A New Wallet and Generate A Permanent Address

  1. In the command prompt window, navigate to the folder you extracted the wallet to. You will see all the files you need to get the node and wallet running.
  2.  To initialize the wallet type the following and hit enter 
    1. litecash-wallet --command=init
    2. Choose a password and then confirm it
    3. Write down the seed phrase and make sure you secure it. This is the only way you can recover the wallet in the event of any issues.
    4. Note – A wallet address is generated but we will not use this one as it expires after 24hrs.
  3.  Now we need to generate a permanent address so that we can continue to mine to the same address and not have to worry about it expiring and losing mining profits.
    1. Type  the following at the prompt.
      litecash-wallet --command=new_addr --expiration_time never

      It will ask you for the password you created in step 2.

    2. To verify the new address type the following.It will ask for you password again.
      litecash-wallet --command=address_list
    3. Make note of the address that is set to never under expiration date.

Get the Owner and Miner Key From Your Wallet. The owner and miner key will be used in the node configuration file. 

  1.  At the command prompt run the following. Make sure to copy this key.
    1. litecash-wallet --command=export_owner_key 
  2. At the command prompt the following to get your miner key. Make sure to copy this key.
    1.  litecash-wallet --command=export_miner_key --subkey=1

Set up and configure your local node.

  1.  In the same directory as you extracted the wallet to earlier, fine litecash-node.cfg. Open this in a text editor (notepad, notepad++, etc).
          1.  
          2. Find the line in the file that says something similar to below. 

            # port to start server on
            # port=10000

          3. Uncomment the line port =10000

            # port to start server on
            port=10000 

          4. Now find the line that says the below: 

            # number of mining threads(there is no mining if 0)
            # mining_threads=0

          5.  Uncomment the line for mining_threads set the value to 8 (or less if your have less threads available on your CPU) and add verification_threads=8 (or less if your have less threads available on your CPU).  

            # number of mining threads(there is no mining if 0)
            mining_threads=8

            verification_threads=8

          6.  You will also need to make sure your note is pointing to a seed node so it can update itself with the blockchain information. 

            # nodes to connect to
            peer=explorer.lite-cash.com:10000
            peer=ca1.lite-cash.com:10000

          7. Now find the below and fill in the information accordingly, using the owner key, miner key, and key password (if you set one). Make sure to remove the # mark at the beginning of each line as below.

            # Owner viewer key
            owner_key=<owner key here>

            # Standalone miner key
            miner_key=<miner key here>

            # password for keys
            pass=<password here>

          8.  You will also need to set up a port so that your miner can connect to the node. Look for the line that starts with stratum_port and set the value to whatever you like. 11001 is just an example.

            # port to start stratum server on 
            stratum_port=11001

          9. Now find the line that starts with stratum_secrets_path, configure it as the following and then copy stratum.key and stratum.crt  and place them in the same directory that you have the wallet and node files in.

            # path to stratum server api keys file, and tls certificate and private key
            stratum_secrets_path=.

             

          10. Here is an example litecash-node.cfg file.
          11.  Now that you have the configuration file completed you can either run the node from the command prompt by typing in litecash-node.exe or double clicking the .exe in Windows explorer.
            1. Take note that this node will need to fully sync with the blockchain before you can continue to the next step. As you are synching you will see messages in the terminal screen that indicate your progress.

Download and configure the mining software.

  1.  Go to Gminer’s GitHub page and download version 2.33.
  2. Extract this file wherever you like. 
  3.  Open the gminer folder and find the mine_beam.bat file. Rename it to mine_cash.bat (or whatever you want to). 
  4. Open the file in a text editor and edit it like the below. Make sure to specify the port that you configured as stratum_port previously. Also replace <address> with the wallet address you previously created. 
    miner.exe --algo beamhashI --server 127.0.0.1 --port 11001 --ssl 1 --user <address> 
  5.  Now you can double click on the .bat file that you just created. If all is well and the configuration is correct, you will see the below. 

Point your wallet to your local node. 

  1. Open litecash-wallet.cfg in your text editor and find the line that starts with node_addr= and change it to the below.

    node_addr=127.0.0.1:10000


LiteCash requires your wallet to be “always on” to receive coins you will want to go back in the command prompt (to your LiteCash wallet directory and type in the following: 

litecash-wallet.exe --command=listen

As long as you leave this running in a terminal, the wallet will remain on to receive any coins that you have mined.


How to check your balance! Run the below command at the command prompt:

litecash-wallet.exe --command=info


As noted above let us know if there is anything missing or any improvements we can make!

~ The LiteCash Team

 

2 thoughts on “Solo Mining LiteCash on Windows

Leave a Reply

Your email address will not be published. Required fields are marked *