Bitcoin Forum
April 19, 2014, 05:02:53 PM *
News: Due to the OpenSSL heartbleed bug, changing your forum password is recommended.
 
   Home   Help Search Donate Login Register  
Pages: [1] 2 3 4 5 6  All
  Print  
Author Topic: [LTC] Online Litecoin Miner  (Read 27713 times)
pooler
Hero Member
*****
Online Online

Activity: 527


View Profile

Ignore
November 20, 2011, 05:46:12 PM
 #1

I have finally succeeded in putting together a (hopefully) working online miner for Litecoin.
This is still highly experimental, and of course this kind of miner will always be slower than the classic minerd.

http://www.litecoinpool.org/miner

You can use the username and password of one of your pool workers, or you can leave the "Worker" field blank if you just want to test it out (shares found this way are credited to a special pool account, and you will not be able to redeem them).

Please check it out, and let me know of any unexpected behavior!
It would also be useful to have some feedback on hashrates for different machines. For instance, on the box I'm using for testing (a Core 2 Duo) this first version is about 3 times slower than ArtForz's cpuminer. I think that's quite a good Java-to-C ratio (I haven't finished optimizing the code yet), but of course your mileage may vary.

UPDATE: On 64-bit systems, the current version can get up to 67% the speed of the reference miner by ArtForz (you must be running a 64-bit Java Virtual Machine and a 64-bit browser). 32-bit systems don't perform as well, but still manage to get about 50% of the speed.

The source code is available under the GNU GPL license. https://github.com/pooler/JMiner

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
1397926973
Hero Member
*
Offline Offline

Posts: 1397926973

View Profile Personal Message (Offline)

Ignore
1397926973
Reply with quote  #2

1397926973
Report to moderator
1397926973
Hero Member
*
Offline Offline

Posts: 1397926973

View Profile Personal Message (Offline)

Ignore
1397926973
Reply with quote  #2

1397926973
Report to moderator
SuzukiDICE.com | Our payout is greater than that of our competitors. Now 99.1% Payout!!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1397926973
Hero Member
*
Offline Offline

Posts: 1397926973

View Profile Personal Message (Offline)

Ignore
1397926973
Reply with quote  #2

1397926973
Report to moderator
1397926973
Hero Member
*
Offline Offline

Posts: 1397926973

View Profile Personal Message (Offline)

Ignore
1397926973
Reply with quote  #2

1397926973
Report to moderator
terrytibbs
Hero Member
*****
Offline Offline

Activity: 532



View Profile

Ignore
November 20, 2011, 06:03:19 PM
 #2

This shortly follows the release of Vanderbleek's miner, so I have to ask:
Is this his miner or have you both been working your asses off on independent projects?

(https://github.com/Vanderbleek/JavaSCryptMiner)
pooler
Hero Member
*****
Online Online

Activity: 527


View Profile

Ignore
November 20, 2011, 06:12:33 PM
 #3

This shortly follows the release of Vanderbleek's miner, so I have to ask:
Is this his miner or have you both been working your asses off on independent projects?

(https://github.com/Vanderbleek/JavaSCryptMiner)

This is an independent project. I knew that Vanderbleek was working on a stand-alone Java miner because of his posts in the main Litecoin thread, but I didn't know his code was on GitHub (thank you for the link!). As far as I can see, though, both projects are based on the same pre-existing Scrypt implementation.

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
terrytibbs
Hero Member
*****
Offline Offline

Activity: 532



View Profile

Ignore
November 20, 2011, 06:15:20 PM
 #4

This is an independent project. I knew that Vanderbleek was working on a stand-alone Java miner because of his posts in the main Litecoin thread, but I didn't know his code was on GitHub (thank you for the link!). As far as I can see, though, both projects are based on the same pre-existing Scrypt implementation.
Ah, I see.

Great work, I hope you open-source it, you can learn from each other and hopefully make the most kick-ass miner on the face of the earth.
kjlimo
Hero Member
*****
Offline Offline

Activity: 952


View Profile WWW

Ignore
November 20, 2011, 08:24:41 PM
 #5

Java(TM) Plug-in Fatal Error

Several Java Virtual Machines running in the same process caused an error


What does this mean?  I'm running another cpu miner; should I turn that off before using your website?

KnC Miner for the fastest mining hardware available!
CampBX for buying BTCs, Coinbase for selling BTCs or Vircurex or Cryptsy for trading alternate cryptocurrencies
Bitpay to help your business accept bitcoin payments!  Get Free Bitcoins here.
Bitcoin Poker at Seals                  Strike Sapphire Casino  Free games every hour & day!


PM me with any questions on these sites!  Happy to help!
pooler
Hero Member
*****
Online Online

Activity: 527


View Profile

Ignore
November 20, 2011, 08:45:56 PM
 #6

Java(TM) Plug-in Fatal Error

Several Java Virtual Machines running in the same process caused an error

What does this mean?

I've looked that up on Google, and it looks like that message is often an indication of a corrupted Java installation. Check here if your browser has problems loading applets:
http://javatester.org/version.html
Also, if you have an old version of the JRE, please update it. There appears to be a Java bug (now fixed) connected with the message you reported.
http://bugs.sun.com/view_bug.do?bug_id=6433218

Quote
I'm running another cpu miner; should I turn that off before using your website?

That should not be necessary, but of course if you run two miners at the same time they will share CPU cycles, so you won't be able to compare their performance.

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
kano
Hero Member
*****
Offline Offline

Activity: 1008


Linux since 1997 RedHat 4


View Profile

Ignore
November 20, 2011, 08:55:21 PM
 #7

Java doesn't need opensource to check the code - you just decompile it back to java Smiley

Hmm - obfuscated - that hardly hides anything either ...

Again I ask - why these projects?
The only real application for them is to steal CPU cycles from people browsing your web sites.

BTC: 1KanoiBupPiZfkwqB7rfLXAzPnoTshAVmb
CGMiner developer,  IRC FreeNode #cgminer kanoi
Help keep Bitcoin secure by mining on pools with Stratum, the best protocol to mine Bitcoins with ASIC hardware
kjlimo
Hero Member
*****
Offline Offline

Activity: 952


View Profile WWW

Ignore
November 20, 2011, 09:12:12 PM
 #8

Java doesn't need opensource to check the code - you just decompile it back to java Smiley

Hmm - obfuscated - that hardly hides anything either ...

Again I ask - why these projects?
The only real application for them is to steal CPU cycles from people browsing your web sites.

Or to give simple mined people a way to join the mining and increase the security of the currency/ get others involved.

KnC Miner for the fastest mining hardware available!
CampBX for buying BTCs, Coinbase for selling BTCs or Vircurex or Cryptsy for trading alternate cryptocurrencies
Bitpay to help your business accept bitcoin payments!  Get Free Bitcoins here.
Bitcoin Poker at Seals                  Strike Sapphire Casino  Free games every hour & day!


PM me with any questions on these sites!  Happy to help!
terrytibbs
Hero Member
*****
Offline Offline

Activity: 532



View Profile

Ignore
November 20, 2011, 09:17:38 PM
 #9

Java doesn't need opensource to check the code - you just decompile it back to java Smiley
Using that would be stealing.

Again I ask - why these projects?
The only real application for them is to steal CPU cycles from people browsing your web sites.
This is far from stealing, the user has to give explicit permission for the Java applet to run. Besides, it's a way of contributing to authors you love without having to watch disturbing advertisements.
pooler
Hero Member
*****
Online Online

Activity: 527


View Profile

Ignore
November 20, 2011, 09:29:49 PM
 #10

Java doesn't need opensource to check the code - you just decompile it back to java Smiley

Hmm - obfuscated - that hardly hides anything either ...

I minified the bytecode because that makes it a little faster, not to obfuscate it. I'm as enthusiastic a supporter of OSS as anyone, and I will release the source code soon.
But first I would like to take a few days to see how much further I can push the miner's speed myself. Kind of a personal challenge Cheesy

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
kano
Hero Member
*****
Offline Offline

Activity: 1008


Linux since 1997 RedHat 4


View Profile

Ignore
November 20, 2011, 10:21:07 PM
 #11

Java doesn't need opensource to check the code - you just decompile it back to java Smiley
Using that would be stealing.
Luckily I have no use for it other than to look at it ...
And that is NOT stealing (as I said above to 'check the code')
However, taking money from people and supplying them with faulty goods IS stealing.

Quote
Again I ask - why these projects?
The only real application for them is to steal CPU cycles from people browsing your web sites.
This is far from stealing, the user has to give explicit permission for the Java applet to run. Besides, it's a way of contributing to authors you love without having to watch disturbing advertisements.
Wrong.
You do not have to give explicit permission for A Java applet to run unless the applet codes that into it ...

BTC: 1KanoiBupPiZfkwqB7rfLXAzPnoTshAVmb
CGMiner developer,  IRC FreeNode #cgminer kanoi
Help keep Bitcoin secure by mining on pools with Stratum, the best protocol to mine Bitcoins with ASIC hardware
kano
Hero Member
*****
Offline Offline

Activity: 1008


Linux since 1997 RedHat 4


View Profile

Ignore
November 20, 2011, 10:23:42 PM
 #12

Java doesn't need opensource to check the code - you just decompile it back to java Smiley

Hmm - obfuscated - that hardly hides anything either ...

Again I ask - why these projects?
The only real application for them is to steal CPU cycles from people browsing your web sites.

Or to give simple mined people a way to join the mining and increase the security of the currency/ get others involved.
LOL yeah the standard excuse given by many who are simply stealing CPU cycles from others.
Who are these "simple mined people" Tongue

BTC: 1KanoiBupPiZfkwqB7rfLXAzPnoTshAVmb
CGMiner developer,  IRC FreeNode #cgminer kanoi
Help keep Bitcoin secure by mining on pools with Stratum, the best protocol to mine Bitcoins with ASIC hardware
terrytibbs
Hero Member
*****
Offline Offline

Activity: 532



View Profile

Ignore
November 20, 2011, 10:30:28 PM
 #13

You do not have to give explicit permission for A Java applet to run unless the applet codes that into it ...
That depends on your browser, but I must say, you're either blatantly stupid, or just use a really crappy browser, if it allows proprietary code to be ran on your machine without permission.
pooler
Hero Member
*****
Online Online

Activity: 527


View Profile

Ignore
November 20, 2011, 10:48:14 PM
 #14

Good news, I have done some optimization and managed to get a ~40% speed increase.
The C-to-Java speed ratio has fallen below 2 on my test box!

Core 2 Duo (64 bit) 1.6 GHz, 2 threads
ArtForz's minerd: 3.3 kH/s
Online miner: 1.8 kH/s

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
kano
Hero Member
*****
Offline Offline

Activity: 1008


Linux since 1997 RedHat 4


View Profile

Ignore
November 21, 2011, 12:56:17 AM
 #15

You do not have to give explicit permission for A Java applet to run unless the applet codes that into it ...
That depends on your browser, but I must say, you're either blatantly stupid, or just use a really crappy browser, if it allows proprietary code to be ran on your machine without permission.
At least learn a little about Java before showing your ignorance and stupidity.

BTC: 1KanoiBupPiZfkwqB7rfLXAzPnoTshAVmb
CGMiner developer,  IRC FreeNode #cgminer kanoi
Help keep Bitcoin secure by mining on pools with Stratum, the best protocol to mine Bitcoins with ASIC hardware
rTech
Sr. Member
****
Offline Offline

Activity: 309


Trust but confirm!


View Profile

Ignore
November 21, 2011, 04:52:28 AM
 #16

Tested with my slowest miner machine: Atom 1.6ghz

With optimized
- minerd-amdfam10-sse4a-64: t0: 0.49 / t1:0.50
- minerd-i7-64: t0: 0.47 / t1:0.45

With this online miner i get constant: 0.289.

kjlimo
Hero Member
*****
Offline Offline

Activity: 952


View Profile WWW

Ignore
November 21, 2011, 02:50:20 PM
 #17

I'm getting about half the speed from a dual core processor.

KnC Miner for the fastest mining hardware available!
CampBX for buying BTCs, Coinbase for selling BTCs or Vircurex or Cryptsy for trading alternate cryptocurrencies
Bitpay to help your business accept bitcoin payments!  Get Free Bitcoins here.
Bitcoin Poker at Seals                  Strike Sapphire Casino  Free games every hour & day!


PM me with any questions on these sites!  Happy to help!
Vanderbleek
Full Member
***
Offline Offline

Activity: 227


View Profile WWW

Ignore
November 21, 2011, 02:52:16 PM
 #18

Awesome pooler -- I'm going to have to take a look at your code later. I was wondering how long it was going to take for someone else to get one working.

Yours definitely seems to be faster than mine, good work.

If I helped, feel free to donate to:
BTC: 1DimPUBPnmZuWu5XrMa3xVnFgMz1iGBNdr
LTC: LLqQuvRZd4uZyenER2mE8d3ns1N1qBWQjD
pooler
Hero Member
*****
Online Online

Activity: 527


View Profile

Ignore
November 21, 2011, 04:19:38 PM
 #19

Awesome pooler -- I'm going to have to take a look at your code later. I was wondering how long it was going to take for someone else to get one working.

Yours definitely seems to be faster than mine, good work.

Thank you!

I still have to work on a couple bugs that I detected yesterday, apparently related to long polling. I'll also try and see if I can push the speed a little more, I got some ideas I want to try out.

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
CAMOPEJB
Member
**
Offline Offline

Activity: 96



View Profile

Ignore
November 21, 2011, 04:24:57 PM
 #20

Nice work!  Smiley

About Litecoin: www.bit.ly/LTCthread , Homepage: www.litecoin.org
Pools: http://pool-x.eu , Exchange: www.bit.ly/LTC-USD
Detailed info: www.bit.ly/LTCgraphs , Block exp.: www.bit.ly/LTCblocks
Pages: [1] 2 3 4 5 6  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!