Bitcoin Forum
May 27, 2024, 11:42:27 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2] 3 4 5 6 7 »  All
  Print  
Author Topic: [Datacoin] External miner released!  (Read 10524 times)
MrMagic
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
December 09, 2013, 08:52:44 PM
 #21

I don't know how to compile it. Can somebody post a version for windows x64? THX a lot!!!

Here is the version I am using. It is compiled for x64-AVX processors. I have mined 3 blocks so far using this. If anyone wants the source I can create a repo and post it. The only changes I made are the ones I posted above and some stat output formatting changes.

https://dl.dropboxusercontent.com/u/20044454/DatacoinMiner.zip



thx! Did I need to write something in the datacoin.conf?

These are the settings you need in datacoin.conf to be able to connect the miner to your wallet.

server=1
rpcallowip=*(or whatever IP the miners will be connecting from)
rpcport=<port> (whatever port you choose to open for the miners to connect to your wallet)
rpcuser=<username> (whatever username you want)
rpcpassword=<password> (whatever password you want)

Example:
server=1
rpcallowip=*
rpcport=4778
rpcuser=DatacoinMiner
rpcpassword=MinerPassword

Then you can connect the miner to your wallet using "DatacoinMiner.exe -o http://localhost:4778 -u DatacoinMiner -p MinerPassword"


*Edit: I am using rpcport 9199 on my own miners.
MrMagic
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
December 09, 2013, 08:56:31 PM
 #22

after about 5-7 min crashing wallet when solo mining with this miner.. (( has the same problem somebody?

Hmm strange. I have been running for about 2 days with about 12 machines connected with no problems. 3 blocks mined so far.

Which version of the wallet are you running? I am running the latest QT wallet from here http://sourceforge.net/projects/datacoin/files/datacoin-qt-131204.zip/download
Ardolafat
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250


View Profile
December 09, 2013, 09:16:48 PM
 #23

So we can make a private pool with someones wallet ?
MrMagic
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
December 09, 2013, 09:18:26 PM
 #24

So we can make a private pool with someones wallet ?

Yes. I have 12 machines running on my one wallet.
MarcusDe
Hero Member
*****
Offline Offline

Activity: 796
Merit: 505



View Profile WWW
December 09, 2013, 09:48:06 PM
 #25

@MrMagic:

Good job!
I was able to sucessfully compile it with VS2013 in AVX & non-AVX versions.

pythonista
Newbie
*
Offline Offline

Activity: 35
Merit: 0


View Profile
December 09, 2013, 09:53:07 PM
 #26

Can someone explain this to me:

Datacoin allows anyone to place entire files permanently in its blockchain - so how long until someone uploads illegal material and then everyone who runs a Datacoin node can be arrested?
maxsolnc (OP)
Sr. Member
****
Offline Offline

Activity: 350
Merit: 250


DTC unofficial team


View Profile WWW
December 09, 2013, 10:05:24 PM
 #27

Can someone explain this to me:

Datacoin allows anyone to place entire files permanently in its blockchain - so how long until someone uploads illegal material and then everyone who runs a Datacoin node can be arrested?

I answered this questions a lot of times. Firstly, all coins that support messages and small data can contain such content - Namecoin for example.
Secondly, files stored in blockchain are not just files on your harddrive - they're turned into blobs and encrypted into blockchain. You need special soft (wallet) to get these files, so it cannot be easily proved that you have some illegal content. I can write a program that takes definite bytes from Windows common files and writes them to file '1.jpg'. This program won't contain any such content, but if you run it, you can get illegal picture from windows common files. So do you think that all Windows users can be arrested in such a way? Smiley

DTC: DMcKNp47fNtgM7sritK9GfJEQ1DzME5nwk
BTC: 1FgUGra685ZwkrX5VnRvfaYp4bHJhC7x4H
MarcusDe
Hero Member
*****
Offline Offline

Activity: 796
Merit: 505



View Profile WWW
December 09, 2013, 10:33:20 PM
 #28

And lets say it:

Illegal content is only illegal from someones point of view.

We all agree that pedobear is bad guy, but we all agree that some documents should be acessible to all, even if some people say they are secret.

We are making free decentralised data service, which cant be closed that easily.

We are making Internet more free.




sugarkey
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
December 10, 2013, 06:21:57 AM
 #29

did anyone have active testnet node? my wallet in testnet cannot sync...

I just want to check my config is right, so I want test it in testnet.
mumus
Sr. Member
****
Offline Offline

Activity: 291
Merit: 250



View Profile
December 10, 2013, 03:14:20 PM
Last edit: December 10, 2013, 09:10:28 PM by mumus
 #30

Hi,
I've just updated the source at https://github.com/hg5fm/jhPrimeminer with some fixes related to what MrMagic suggested in his previous post.
Now the miner will accept "-getwork" command line parameter that can be used to do the classic solo mining using datacoin wallet and getwork protocol. It also should have some fix that may prevent the wallet crashing problem reported by some users.
A precompiled binary can be found here: https://mega.co.nz/#!mRMnSAwC!ZoAHgBVIMIOthnRQOq9ukRWWz-hvayNyshB1oXpHcXU
Compiling the source can be done using Visual Studio 2008/2010/2012/2013 or by installing the Windows SDK.
If someone doesn't want to install Visual Studio here is a little guide to compile it with windows SDK.
1. Download and install the Microsoft Windows SDK for Windows 7 from: http://www.microsoft.com/en-us/download/details.aspx?id=8279
2. Download and extract the jhPrimeminer source code from: https://github.com/hg5fm/jhPrimeminer/archive/master.zip
3. Open the "Windows SDK 7.1 Command Prompt"
4. Change the current directory to the extracted jhPrimeminer source location, for example:
Code:
cd C:\jhPrimeminer-master\src
5. Compile the miner with the following command:
Code:
msbuild primecoinMiner-vs2010.sln /t:Rebuild /p:Configuration=Release;Platform=x64
The jhPrimeminer.exe will be located under C:\jhPrimeminer-master\src\bin\ directory
In order to run it you will need also the mpir.dll which depends on MS Visual C++ runtime. One can be found in the jhPrimeminer-v8.2.zip mentioned above.
6. Run the miner
Code:
jhPrimeminer.exe -o http://127.0.0.1:11777 -u datacoinrpc -p rpcpassword -getwork
Of course replace the username and password with your values specified in the wallet's datacoin.conf

You may want to test that your miner and configuration works well using the datacoin  testnet network where the difficulty is very low so you can find block easily.
In order to do this run the latest wallet (I've compiled form the latest code today, earlier versions may not work on testnet) with the following command:
Code:
datacoin-qt.exe -testnet -rpcuser=datacoinrpc -rpcpassword=rpcpassword -rpcallowip=*.*.*.* -rpcport=11776
Then run the miner:
Code:
jhPrimeminer.exe -o http://127.0.0.1:11776 -u datacoinrpc -p rpcpassword -getwork


Regarding to building the miner with different compilation flags targeting some CPU features like AVX, SSE3, SSE4, etc., I've found no significant performance improvement in my tests.
More important is the version of the mpir.dll that is used by the miner which can lead to 20-30% improvements with specific CPUs.
A package of some precompiled mpir.dll can be found here:  https://mega.co.nz/#!DMdBCSII!ZYAYTzxeNJu_JzKVpUFNa01ehTYfHQHH_leijY28wbQ

I've also tried to solo mine datacoins with one of the Linux port of the jhPrimeminer that was forked form https://github.com/hg5fm/jhPrimeminer at an earlier stage. It should support getwork protocol but  looks like it is broken now. I'm working on the fix and will post and update when I have something.

maxsolnc (OP)
Sr. Member
****
Offline Offline

Activity: 350
Merit: 250


DTC unofficial team


View Profile WWW
December 10, 2013, 07:41:04 PM
 #31

Thank you mumus for fast reply!

DTC: DMcKNp47fNtgM7sritK9GfJEQ1DzME5nwk
BTC: 1FgUGra685ZwkrX5VnRvfaYp4bHJhC7x4H
cryptrol
Hero Member
*****
Offline Offline

Activity: 637
Merit: 500


View Profile
December 10, 2013, 09:46:35 PM
 #32

Can someone explain this to me:

Datacoin allows anyone to place entire files permanently in its blockchain - so how long until someone uploads illegal material and then everyone who runs a Datacoin node can be arrested?
There is (at least) one wiki*eaks document (a leaked document) stored into the bitcoin blockchain.
MrMagic
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
December 11, 2013, 03:04:56 AM
Last edit: December 11, 2013, 03:28:13 AM by MrMagic
 #33

Hi,
I've just updated the source at https://github.com/hg5fm/jhPrimeminer with some fixes related to what MrMagic suggested in his previous post.
Now the miner will accept "-getwork" command line parameter that can be used to do the classic solo mining using datacoin wallet and getwork protocol. It also should have some fix that may prevent the wallet crashing problem reported by some users.
A precompiled binary can be found here: https://mega.co.nz/#!mRMnSAwC!ZoAHgBVIMIOthnRQOq9ukRWWz-hvayNyshB1oXpHcXU
Compiling the source can be done using Visual Studio 2008/2010/2012/2013 or by installing the Windows SDK.
If someone doesn't want to install Visual Studio here is a little guide to compile it with windows SDK.
1. Download and install the Microsoft Windows SDK for Windows 7 from: http://www.microsoft.com/en-us/download/details.aspx?id=8279
2. Download and extract the jhPrimeminer source code from: https://github.com/hg5fm/jhPrimeminer/archive/master.zip
3. Open the "Windows SDK 7.1 Command Prompt"
4. Change the current directory to the extracted jhPrimeminer source location, for example:
Code:
cd C:\jhPrimeminer-master\src
5. Compile the miner with the following command:
Code:
msbuild primecoinMiner-vs2010.sln /t:Rebuild /p:Configuration=Release;Platform=x64
The jhPrimeminer.exe will be located under C:\jhPrimeminer-master\src\bin\ directory
In order to run it you will need also the mpir.dll which depends on MS Visual C++ runtime. One can be found in the jhPrimeminer-v8.2.zip mentioned above.
6. Run the miner
Code:
jhPrimeminer.exe -o http://127.0.0.1:11777 -u datacoinrpc -p rpcpassword -getwork
Of course replace the username and password with your values specified in the wallet's datacoin.conf

You may want to test that your miner and configuration works well using the datacoin  testnet network where the difficulty is very low so you can find block easily.
In order to do this run the latest wallet (I've compiled form the latest code today, earlier versions may not work on testnet) with the following command:
Code:
datacoin-qt.exe -testnet -rpcuser=datacoinrpc -rpcpassword=rpcpassword -rpcallowip=*.*.*.* -rpcport=11776
Then run the miner:
Code:
jhPrimeminer.exe -o http://127.0.0.1:11776 -u datacoinrpc -p rpcpassword -getwork


Regarding to building the miner with different compilation flags targeting some CPU features like AVX, SSE3, SSE4, etc., I've found no significant performance improvement in my tests.
More important is the version of the mpir.dll that is used by the miner which can lead to 20-30% improvements with specific CPUs.
A package of some precompiled mpir.dll can be found here:  https://mega.co.nz/#!DMdBCSII!ZYAYTzxeNJu_JzKVpUFNa01ehTYfHQHH_leijY28wbQ

I've also tried to solo mine datacoins with one of the Linux port of the jhPrimeminer that was forked form https://github.com/hg5fm/jhPrimeminer at an earlier stage. It should support getwork protocol but  looks like it is broken now. I'm working on the fix and will post and update when I have something.



Nice! Thanks for the update mumus. I also tested with different arch builds but couldn't see any noticeable difference either. Funny that you mentioned messing with mpir as I was looking at that next for any performance increases. I suppose this is why you chose to link it using dll instead of lib, so that the dll could be replaced easily by end users. Curious though how you built mpir for sandy bridge. I did not see that in the visual studio project provided on the mpir site. The reason I ask is I would like to build a haswell dll if possible.

Thanks again!

*Edit: Just tested sandy bridge mpir.dll on my 4770 (Haswell) and some 3770s (Ivy bridge) and it appears to give about 3x performance (based on 3/4 ch/hr) over the stock dll that was with the repo.
maxsolnc (OP)
Sr. Member
****
Offline Offline

Activity: 350
Merit: 250


DTC unofficial team


View Profile WWW
December 11, 2013, 06:08:42 AM
 #34

seems that solo mining with home computers can be profitable again? Wink

DTC: DMcKNp47fNtgM7sritK9GfJEQ1DzME5nwk
BTC: 1FgUGra685ZwkrX5VnRvfaYp4bHJhC7x4H
Adrenalin
Newbie
*
Offline Offline

Activity: 53
Merit: 0


View Profile
December 11, 2013, 07:35:58 AM
 #35

Has somebody found any block with this miner yet?
MrMagic
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
December 11, 2013, 07:40:20 AM
 #36

Has somebody found any block with this miner yet?
5 and counting. Literally just got one 23 minutes ago.
sugarkey
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
December 11, 2013, 07:49:43 AM
 #37

Has somebody found any block with this miner yet?
5 and counting. Literally just got one 23 minutes ago.

How many PCs you got?
MrMagic
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
December 11, 2013, 07:55:35 AM
 #38

Has somebody found any block with this miner yet?
5 and counting. Literally just got one 23 minutes ago.

How many PCs you got?

Currently running 6 cores on (1) i7-4770 and 7 cores on (12) i7-3770. I save the last core on the 3770s for gpu litecoin mining overhead.
relm9
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1000



View Profile
December 11, 2013, 08:08:30 AM
 #39

Quick question: is the chainsperday stat on the datacoin daemon supposed to give a reading when you are using an external miner?

I'm just wondering because mine is sitting at 0, other than that everything seems to be working correctly. I got a big boost from using the Sandy Bridge mpir on my i7 4770 as well.
MrMagic
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
December 11, 2013, 08:24:21 AM
 #40

Quick question: is the chainsperday stat on the datacoin daemon supposed to give a reading when you are using an external miner?

I'm just wondering because mine is sitting at 0, other than that everything seems to be working correctly. I got a big boost from using the Sandy Bridge mpir on my i7 4770 as well.

No. The chains per day stat is generated by the internal mining code of the wallet.
Pages: « 1 [2] 3 4 5 6 7 »  All
  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!