Bitcoin Forum
May 26, 2024, 07:37:30 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Help needed setting up solo mining  (Read 1725 times)
MEPHuk (OP)
Full Member
***
Offline Offline

Activity: 182
Merit: 100


View Profile
January 21, 2014, 06:31:31 PM
 #1

Hi, i need help setting up solo mining. I found this https://bitcointalk.org/index.php?topic=83371.0, 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

MEPHuk (OP)
Full Member
***
Offline Offline

Activity: 182
Merit: 100


View Profile
January 21, 2014, 08:05:10 PM
 #2

Anyone ?

MEPH

kfactor
Full Member
***
Offline Offline

Activity: 138
Merit: 102


View Profile
January 22, 2014, 12:09:33 AM
 #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

MEPHuk (OP)
Full Member
***
Offline Offline

Activity: 182
Merit: 100


View Profile
January 22, 2014, 03:02:04 PM
 #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

kfactor
Full Member
***
Offline Offline

Activity: 138
Merit: 102


View Profile
January 22, 2014, 04:01:15 PM
 #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.
MEPHuk (OP)
Full Member
***
Offline Offline

Activity: 182
Merit: 100


View Profile
January 23, 2014, 12:36:28 AM
 #6

Ok, thanks for the reply !

MEPH

harkonnen
Full Member
***
Offline Offline

Activity: 210
Merit: 100



View Profile
January 26, 2014, 10:32:35 AM
 #7

Great article.
Thank you, kfactor.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!