Author

Topic: Help needed setting up solo mining (Read 1740 times)

full member
Activity: 210
Merit: 100
January 26, 2014, 05:32:35 AM
#7
Great article.
Thank you, kfactor.
full member
Activity: 182
Merit: 100
January 22, 2014, 07:36:28 PM
#6
Ok, thanks for the reply !

MEPH
full member
Activity: 138
Merit: 102
January 22, 2014, 11:01:15 AM
#5
Thanks for the reply ! The batch file you mentioned, you said save it anywhere on my machine.. would inside the wallet qt folder be ok ?

MEPH

That will work fine, but as a general rule you don't want to be going into the application data folder (where wallet.dat resides) to run executables.
full member
Activity: 182
Merit: 100
January 22, 2014, 10:02:04 AM
#4
Thanks for the reply ! The batch file you mentioned, you said save it anywhere on my machine.. would inside the wallet qt folder be ok ?

MEPH
full member
Activity: 138
Merit: 102
January 21, 2014, 07:09:33 PM
#3
Quick & Dirty Method

If you haven't already, setup bitcoin-qt (latest is 0.8.6) and download the blockchain.

Once bitcoin-qt is up to date, shut it down (close application) and do the following:


Assuming windows machines

1) Navigate to C:\Documents and Settings\your_user\Application Data\Bitcoin

(If you can't find this folder, enable "show hidden files" in your control panel under folder options / view)


2) In the above folder edit or create "bitcoin.conf" and insert the following:

daemon=1
server=1
gen=0
rpcuser=your_chosen_user_name
rpcpassword=your_chosen_user_password
rpcallowip=127.0.0.1
rpcallowip=192.168.2.*
rpcport=8332

  • The user / password combo is yours to choose, and are the pool credentials that bitcoin-qt will accept from BFGminer or standalone stratum proxy
  • The allow ip of 127.0.0.1 is localhost, and you would use this if your BFGminer or standalone stratum proxy is hosted on the same machine as bitcoin-qt
  • If bitcoin-qt is on another machine on your network use the IP range of your network with a wildcard (eg: 192.168.2.*), so any machine can talk to bitcoin-qt
  • Choose an rpcport, I suggest 8832
  • Note: gen=0 may be deprecated, not sure but no harm to leave it in

3) Save bitcoin.conf file


4) Navigate to your bitcoin-qt install (probably C:\Program Files\Bitcoin)

5) Launch bitcoin-qt in server mode. You can do this a few ways:

    A) Hold shift and right-click anywhere in the bitcoin folder and select "open command window here". In dos box type "bitcoin-qt.exe -server". Bitcoin will load and your solo pool is running.
or
    B) Create a batch file anywhere on your machine with the following code, which when run will open a box and prompt you to hit a key before launching bitcoin-qt in server mode. Name the batch file anything.bat

@echo off
echo Press any key to run Bitcoin-QT Server mode
pause
CD C:\Program Files\Bitcoin
start bitcoin-qt -server


Now that bitcoin-qt is running in server mode, point your stratum proxy or BFGminer to bitcoin-qt (port 8332) and start hashing! Here is a shortcut example to launch BFGminer in solo mining mode:

C:\bfgminer\bfgminer.exe -o 127.0.0.1:8332 -u my_rpc_user -p my_rpc_password

In the above instance BFGminer is running on the same machine as bitcoin-qt. Insert whatever other commands you need to get your miners talking to BFGminer.



You should be good to go ...

Cheers  Smiley

full member
Activity: 182
Merit: 100
January 21, 2014, 03:05:10 PM
#2
Anyone ?

MEPH
full member
Activity: 182
Merit: 100
January 21, 2014, 01:31:31 PM
#1
Hi, i need help setting up solo mining. I found this https://bitcointalksearch.org/topic/tutorial-solo-mining-litecoins-guide-windows-83371, but i wont be mining litecoin. But will most of that notepad entry still be relevant for other coins ? (say. offerings).

Thanks in advance

MEPH
Jump to: