I am a Bitcoin miner, how can I switch to mining Namecoins?

gigabytecoin
Posts: 67
Joined: Tue May 10, 2011 12:49 am
os: linux
Location: Behind 50 Proxies

I am a Bitcoin miner, how can I switch to mining Namecoins?

Post by gigabytecoin »

I am a Bitcoin miner, how can I switch to mining Namecoins?

khal
Site Admin
Posts: 708
Joined: Mon May 09, 2011 5:09 pm
os: linux

Re: I am a Bitcoin miner, how can I switch to mining Namecoi

Post by khal »

You need to configure a different port if you want to use both.
On linux, you need to edit "~/.namecoin/bitcoin.conf" and configure 3 lines :

Code: Select all

rpcuser=user
rpcpassword=pass
rpcport=8336
Then, use these settings in you miner.
Example :

Code: Select all

./minerd --url http://127.0.0.1:8336/ --userpass user:pass --threads 2 -a sse2_64
NamecoinID: id/khal
GPG : 9CC5B92E965D69A9
NMC: N1KHAL5C1CRzy58NdJwp1tbLze3XrkFxx9
BTC: 1KHAL8bUjnkMRMg9yd2dNrYnJgZGH8Nj6T

Register Namecoin domains with BTC
My bitcoin Identity - Send messages to bitcoin users
Charity Ad - Make a good deed without paying a cent

moa
Posts: 255
Joined: Mon May 23, 2011 6:13 am

Re: I am a Bitcoin miner, how can I switch to mining Namecoi

Post by moa »

OK, did this and got some blocks "accepted". While waiting for the 120 blocks to chug through is there any way to check on "unconfirmed blocks" that I have mined using namecoind API?

Also, I set ports in .namecoin/bitcoin.conf to 8336 and miners to point at 8336 and seems to run fine on that side. But upon launching the namecoind linux binary defaults to port 8334 so why is it still working or does it just appear to be?

khal
Site Admin
Posts: 708
Joined: Mon May 09, 2011 5:09 pm
os: linux

Re: I am a Bitcoin miner, how can I switch to mining Namecoi

Post by khal »

namecoin uses 2 ports, 1 to connect to other nodes and 1 to receive your commands/miner. You can change only the second one. So, no problem i guess :p

To view immature blocks, you need the latest version (the windows version has been updated yesterday) and use :

Code: Select all

./namecoind listtransactions
or
namecoind.exe listtransactions
NamecoinID: id/khal
GPG : 9CC5B92E965D69A9
NMC: N1KHAL5C1CRzy58NdJwp1tbLze3XrkFxx9
BTC: 1KHAL8bUjnkMRMg9yd2dNrYnJgZGH8Nj6T

Register Namecoin domains with BTC
My bitcoin Identity - Send messages to bitcoin users
Charity Ad - Make a good deed without paying a cent

moa
Posts: 255
Joined: Mon May 23, 2011 6:13 am

Re: I am a Bitcoin miner, how can I switch to mining Namecoi

Post by moa »

Hey, thanx khal. So looks like the port settings are fine, thanx for clarifying that.

SO now the unconfirmed blocks do not show up with the

$./namecoind listtransactions

but the binary i'm using is the linux 32 bit from here
http://dot-bit.org/Main_Page
dated 17-05-2011 so probably shouldn't be expected to, correct?

If so i'll go pull the github version and build it locally.

khal
Site Admin
Posts: 708
Joined: Mon May 09, 2011 5:09 pm
os: linux

Re: I am a Bitcoin miner, how can I switch to mining Namecoi

Post by khal »

Indeed, all versions on the dot-bit homepage should include the patch to show immature blocks.

Did you use an older version and then switched to the new one without stopping/restarting namecoin ?

Otherwise, i may have done a mistake (but i compiled the 32bit version from a fresh git clone which includes the patch), so... Let me know your result :p
NamecoinID: id/khal
GPG : 9CC5B92E965D69A9
NMC: N1KHAL5C1CRzy58NdJwp1tbLze3XrkFxx9
BTC: 1KHAL8bUjnkMRMg9yd2dNrYnJgZGH8Nj6T

Register Namecoin domains with BTC
My bitcoin Identity - Send messages to bitcoin users
Charity Ad - Make a good deed without paying a cent

moa
Posts: 255
Joined: Mon May 23, 2011 6:13 am

Re: I am a Bitcoin miner, how can I switch to mining Namecoi

Post by moa »

khal wrote:Indeed, all versions on the dot-bit homepage should include the patch to show immature blocks.

Did you use an older version and then switched to the new one without stopping/restarting namecoin ?

Otherwise, i may have done a mistake (but i compiled the 32bit version from a fresh git clone which includes the patch), so... Let me know your result :p
Nope. This was my first install of namecoin so nothing to do with older version. Can't do a clean local build because of ecdsa missing from openssl in RH bullshit ... and immature blocks not showing up.

At this point, my hopes are pinned on your build on the main page not supporting the new listtransactions call or I've wasted a day mining namecoin blocks that don't exist or got sent to someone else (don't see how) ...

khal
Site Admin
Posts: 708
Joined: Mon May 09, 2011 5:09 pm
os: linux

Re: I am a Bitcoin miner, how can I switch to mining Namecoi

Post by khal »

You were right, my version did not include the patch, sorry... Don't know why (vince has changed git history and i guess i did not update my repo the right way...).

I've updated the 32bits version on the homepage.

Edit : 64bits version updated too.
NamecoinID: id/khal
GPG : 9CC5B92E965D69A9
NMC: N1KHAL5C1CRzy58NdJwp1tbLze3XrkFxx9
BTC: 1KHAL8bUjnkMRMg9yd2dNrYnJgZGH8Nj6T

Register Namecoin domains with BTC
My bitcoin Identity - Send messages to bitcoin users
Charity Ad - Make a good deed without paying a cent

moa
Posts: 255
Joined: Mon May 23, 2011 6:13 am

Re: I am a Bitcoin miner, how can I switch to mining Namecoi

Post by moa »

Ok, thanks. I'll check it but I'm determined to build my own on Fedora.

Edit: Did you update the main page?
http://dot-bit.org/Main_Page
The date release still says 2011-05-17.

My namecoins from yesterday's mining showed up so it was working anyway. Newbie nerves.

khal
Site Admin
Posts: 708
Joined: Mon May 09, 2011 5:09 pm
os: linux

Re: I am a Bitcoin miner, how can I switch to mining Namecoi

Post by khal »

Yes, but i keep the time of last commit. Maybe i shouldn't ?
NamecoinID: id/khal
GPG : 9CC5B92E965D69A9
NMC: N1KHAL5C1CRzy58NdJwp1tbLze3XrkFxx9
BTC: 1KHAL8bUjnkMRMg9yd2dNrYnJgZGH8Nj6T

Register Namecoin domains with BTC
My bitcoin Identity - Send messages to bitcoin users
Charity Ad - Make a good deed without paying a cent

Post Reply