Author

Topic: [ANN] Litecoin - a lite version of Bitcoin. Launched! - page 371. (Read 1468026 times)

sr. member
Activity: 352
Merit: 250
Firstbits: 1m8xa
You seem to have taken the protocol-dump parameter off. I had it enabled because otherwise it would take very long time for the output buffer to get filled and cleared (so the GUI application could read the output). It took around 3 minutes before it even showed the hash rate /wo protocol-dump being enabled.

Seems to be behaviour that differs between OSes. (I use Windows)

It causes a new problem with the new Debug Logging option though... Maybe if the protocol-dump related data could be omitted somehow?'

Didn't you add this read timer to read output every 500 millisecond?
https://github.com/coblee/litecoin/blob/master/src/qt/miningpage.cpp#L29

That seems to work for me. Is it not working on Windows?
Not working on Windows. It only reads the output once the output buffer has been filled.

Can you try a few things on Windows? Instead of waiting on signal readyReadStandardOutput(), use readyReadStandardError(). Does that help? If not, how about just readyRead()
I know minerd only outputs to stderr, so stdout might not be flushed after each printout.
I tried those things when developing the GUI and opted for enabling the protocol dump option.
hero member
Activity: 560
Merit: 501
- Remember last state. So client will start up and automatically and mine (solo or pool) if it was previously closed in that state
Where is this stored?
legendary
Activity: 910
Merit: 1000
Quality Printing Services by Federal Reserve Bank
Looks good. Excellent.
donator
Activity: 1654
Merit: 1354
Creator of Litecoin. Cryptocurrency enthusiast.
Still need to do:
- save config values using db as oppose to easyconfig.txt
- hook up solo mining option
- hook up mining status and hashrate with status icon at the bottom
- maybe move mining tab to right most tab (let me know if you don't want that)

Done!
- Remember config settings in db
- Implemented solo mining option to hook up with internal miner
- Hooked up mining hashrate status with status icon for both solo and pool mining
- Remember last state. So client will start up and automatically and mine (solo or pool) if it was previously closed in that state
- Moved mining tab to last tab on right

https://github.com/downloads/coblee/litecoin/litecoin-windows-client-0.5.0.3.zip
donator
Activity: 1654
Merit: 1354
Creator of Litecoin. Cryptocurrency enthusiast.
You seem to have taken the protocol-dump parameter off. I had it enabled because otherwise it would take very long time for the output buffer to get filled and cleared (so the GUI application could read the output). It took around 3 minutes before it even showed the hash rate /wo protocol-dump being enabled.

Seems to be behaviour that differs between OSes. (I use Windows)

It causes a new problem with the new Debug Logging option though... Maybe if the protocol-dump related data could be omitted somehow?'

Didn't you add this read timer to read output every 500 millisecond?
https://github.com/coblee/litecoin/blob/master/src/qt/miningpage.cpp#L29

That seems to work for me. Is it not working on Windows?
Not working on Windows. It only reads the output once the output buffer has been filled.

Can you try a few things on Windows? Instead of waiting on signal readyReadStandardOutput(), use readyReadStandardError(). Does that help? If not, how about just readyRead()
I know minerd only outputs to stderr, so stdout might not be flushed after each printout.
hero member
Activity: 630
Merit: 500
Posts: 69
It will only take one person to complain about it and I am certain that the FireFox block and google will block the site without a second thought.

I am not sure where you got such a negative view of the technology lol.  On top of a decent ad replacement imo.  I have seen someone have that either set up the page or was going to, that has it donate to NORML.  So another use would be charity.   Another idea is if Wikipedia were to implement it, it could run properly without worrying about donations.  I think there is a lot of positives that could come, instead of focusing on the one negative of a botnet abusing it, as a botnet can abuse a lot of good things, doesn't mean they shouldn't exist imo
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
How is this any different to creating a botnet?
The user would know they are mining either for themselves or for the site.
Quote
All it would do is turn people away from litecoin or consider the website a trojan installer.
I 100% disagree.  But if I had the perception of what you think the site would be used for, then I understand.
Quote
You really think it is OK to steal CPU cycles from people visiting the web site and there will be no back-lash?
Yes, there is a misunderstanding going on here.  Where is stealing anything coming into play?
Quote
... and who is going to keep the coins? I take it your not going to give the coins to the person who mined them?
lol, duh, of course not, but I make sure that the people who use the sites I have it on, know it is running.  I see the technology as a great way to avoid having to have ads on a web site while at the same time ensure costs can be recouped.  I have no unethical intentions, I have been using BitcoinPlus on the Bitcoin Porn web site for months now, it has been advertised that it is using it since day one, along with a link to information on how it works.   

A lot of technologies can be abused, but this one has a lot of good potential imo.
Well then all I can say is make sure it is VERY clear that the site is doing what most A/V programs consider to be a trojan.

It will only take one person to complain about it and I am certain that the FireFox block and google will block the site without a second thought.
sr. member
Activity: 352
Merit: 250
Firstbits: 1m8xa
You seem to have taken the protocol-dump parameter off. I had it enabled because otherwise it would take very long time for the output buffer to get filled and cleared (so the GUI application could read the output). It took around 3 minutes before it even showed the hash rate /wo protocol-dump being enabled.

Seems to be behaviour that differs between OSes. (I use Windows)

It causes a new problem with the new Debug Logging option though... Maybe if the protocol-dump related data could be omitted somehow?'

Didn't you add this read timer to read output every 500 millisecond?
https://github.com/coblee/litecoin/blob/master/src/qt/miningpage.cpp#L29

That seems to work for me. Is it not working on Windows?
Not working on Windows. It only reads the output once the output buffer has been filled.
donator
Activity: 1654
Merit: 1354
Creator of Litecoin. Cryptocurrency enthusiast.
You seem to have taken the protocol-dump parameter off. I had it enabled because otherwise it would take very long time for the output buffer to get filled and cleared (so the GUI application could read the output). It took around 3 minutes before it even showed the hash rate /wo protocol-dump being enabled.

Seems to be behaviour that differs between OSes. (I use Windows)

It causes a new problem with the new Debug Logging option though... Maybe if the protocol-dump related data could be omitted somehow?'

Didn't you add this read timer to read output every 500 millisecond?
https://github.com/coblee/litecoin/blob/master/src/qt/miningpage.cpp#L29

That seems to work for me. Is it not working on Windows?
hero member
Activity: 630
Merit: 500
Posts: 69
How is this any different to creating a botnet?
The user would know they are mining either for themselves or for the site.
Quote
All it would do is turn people away from litecoin or consider the website a trojan installer.
I 100% disagree.  But if I had the perception of what you think the site would be used for, then I understand.
Quote
You really think it is OK to steal CPU cycles from people visiting the web site and there will be no back-lash?
Yes, there is a misunderstanding going on here.  Where is stealing anything coming into play?
Quote
... and who is going to keep the coins? I take it your not going to give the coins to the person who mined them?
lol, duh, of course not, but I make sure that the people who use the sites I have it on, know it is running.  I see the technology as a great way to avoid having to have ads on a web site while at the same time ensure costs can be recouped.  I have no unethical intentions, I have been using BitcoinPlus on the Bitcoin Porn web site for months now, it has been advertised that it is using it since day one, along with a link to information on how it works.   

A lot of technologies can be abused, but this one has a lot of good potential imo.
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
I'm currently working on a JavaScript based miner for LiteCoin if anyones interested in it?
Let me know if you are.
(This means mining can be as simple as opening a webpage! Maybe pointing to the IP address of your litecoind server first, or would people prefer a pool?)

This can be a good way to monetize a web site : the visitor is running your javascript miner as long as he keeps the page open.
A few suggestions :
- allow to parametrize how long and how heavily the miner will run to avoid annoying visitors (call it periodically for a fixed amount of cycles using timer callbacks).
- allow to keep track of who mined how many shares (session identifier passed together with the results) to provide incentive, or allow browsers to mine on pools.
any further info on this?

Yes, I completely missed this.

If someone can get this technology going, I will help promote the fuck out of it, if it works. 

Use this as the model http://bitcoinplus.com, except dont disappear after you create the site  Cheesy
How is this any different to creating a botnet?

All it would do is turn people away from litecoin or consider the website a trojan installer.

You really think it is OK to steal CPU cycles from people visiting the web site and there will be no back-lash?

... and who is going to keep the coins? I take it your not going to give the coins to the person who mined them?
sr. member
Activity: 406
Merit: 250
About to add litecoin support to simplecoin.us.

I also just sent a pull request to add native long polling support Smiley

UPDATE: LTC is active on simplecoin.us
hero member
Activity: 630
Merit: 500
Posts: 69
I'm currently working on a JavaScript based miner for LiteCoin if anyones interested in it?
Let me know if you are.
(This means mining can be as simple as opening a webpage! Maybe pointing to the IP address of your litecoind server first, or would people prefer a pool?)

This can be a good way to monetize a web site : the visitor is running your javascript miner as long as he keeps the page open.
A few suggestions :
- allow to parametrize how long and how heavily the miner will run to avoid annoying visitors (call it periodically for a fixed amount of cycles using timer callbacks).
- allow to keep track of who mined how many shares (session identifier passed together with the results) to provide incentive, or allow browsers to mine on pools.
any further info on this?

Yes, I completely missed this.

If someone can get this technology going, I will help promote the fuck out of it, if it works. 

Use this as the model http://bitcoinplus.com, except dont disappear after you create the site  Cheesy
full member
Activity: 196
Merit: 101
I'm currently working on a JavaScript based miner for LiteCoin if anyones interested in it?
Let me know if you are.
(This means mining can be as simple as opening a webpage! Maybe pointing to the IP address of your litecoind server first, or would people prefer a pool?)

This can be a good way to monetize a web site : the visitor is running your javascript miner as long as he keeps the page open.
A few suggestions :
- allow to parametrize how long and how heavily the miner will run to avoid annoying visitors (call it periodically for a fixed amount of cycles using timer callbacks).
- allow to keep track of who mined how many shares (session identifier passed together with the results) to provide incentive, or allow browsers to mine on pools.
any further info on this?
sr. member
Activity: 352
Merit: 250
Firstbits: 1m8xa
I haven't figured out a good way to present these 2 different mining options together without confusing the user.
Dropdown with "Pool" and "Solo" options, with a URL input for the pool getting disabled when solo is selected?
That's exactly what I was going to do. I'll start working on it in just a minute.

Please wait. I'm still flushing out the UI. So there's going to be a lot of conflicts if we both work on it at the same time.
Alright, to be fair I have no idea how to proceed with the solo mining part, since I need to know the RPC port, username and password, and I have no idea how to do it without modifying the underlying code.

Ok, I checked in some tweaks:
- added drop down for pool mining versus solo mining (solo mining not hooked up to client's "-gen" option yet)
- added debug logging checkbox. this will print out what minerd prints out.
- various UI tweaks
- fixed 1000 bitcoin bugs (just kidding, just imitating CoinHunter/RealSolid here)

Still need to do:
- save config values using db as oppose to easyconfig.txt
- hook up solo mining option
- hook up mining status and hashrate with status icon at the bottom
- maybe move mining tab to right most tab (let me know if you don't want that)

Here's a sneak peek:

IMAGE

I did not build a windows binary yet since these are just minor changes. But those who know how to build there own, feel free to check it out.
You seem to have taken the protocol-dump parameter off. I had it enabled because otherwise it would take very long time for the output buffer to get filled and cleared (so the GUI application could read the output). It took around 3 minutes before it even showed the hash rate /wo protocol-dump being enabled.

Seems to be behaviour that differs between OSes. (I use Windows)

It causes a new problem with the new Debug Logging option though... Maybe if the protocol-dump related data could be omitted somehow?'
sr. member
Activity: 352
Merit: 250
Firstbits: 1m8xa
In other news, I've compiled a new version of ScryptMiner GUI for Windows that fixes the time reporting bug :
http://www.mediafire.com/?11ibe93r09dqo4e

Also, you seem to have taken the protocol dumping off. I enabled it because it causes the output buffers to fill much more quickly, so that the GUI application can read the output. It *might* behave differently on different OSes but I'll check it once I manage to get my repository up-to-date (damned Git)
Thank you i was already wondering what weird times i had on the other machines Cheesy

Yeah, it accidentally prepended the first digit of the year, which in this case was always 2... Tongue
hero member
Activity: 774
Merit: 500
Lazy Lurker Reads Alot
In other news, I've compiled a new version of ScryptMiner GUI for Windows that fixes the time reporting bug :
http://www.mediafire.com/?11ibe93r09dqo4e

Also, you seem to have taken the protocol dumping off. I enabled it because it causes the output buffers to fill much more quickly, so that the GUI application can read the output. It *might* behave differently on different OSes but I'll check it once I manage to get my repository up-to-date (damned Git)
Thank you i was already wondering what weird times i had on the other machines Cheesy
hero member
Activity: 774
Merit: 500
Lazy Lurker Reads Alot
lol your right coblee lol i forgot that its almost the same as put gen=1 in the conf Cheesy
But then again some do mine local solo but use other pc's connected to that machine to help mine for faster result, so in all it must be made clear what is the intension or what is meant by solo mining.
So what the definition of solo mining, I mine by myself  but i am also using my other pc's to get quicker result cause mining on just one pc takes some days to get a block when mining with more of my machines i end up doing 1 block in about 2 days or sometimes each day one
Or do i mine only with this machine hence the real solo mining which the setting gen=1 in litecoin.conf would do.....
sr. member
Activity: 352
Merit: 250
Firstbits: 1m8xa
In other news, I've compiled a new version of ScryptMiner GUI for Windows that fixes the time reporting bug :
http://www.mediafire.com/?11ibe93r09dqo4e

Also, you seem to have taken the protocol dumping off. I enabled it because it causes the output buffers to fill much more quickly, so that the GUI application can read the output. It *might* behave differently on different OSes but I'll check it once I manage to get my repository up-to-date (damned Git)
donator
Activity: 1654
Merit: 1354
Creator of Litecoin. Cryptocurrency enthusiast.
Quote
Alright, to be fair I have no idea how to proceed with the solo mining part, since I need to know the RPC port, username and password, and I have no idea how to do it without modifying the underlying code.
I do not understand what you mean by that, the litecoin.conf needs to be editted just to have the needed info which for solo mining is given mutliple times
litecoin.conf should contain this {mean fill in your wanted info } (default or change it if you like)

rpcuser={ my username } or whatever name you think you want
rpcpassword={ my password }
rpcallowip=* ( can be changed into the local ip address if feel safer like 127.0.0.1)
rpcport=9332 (xxxx)
daemon=1
server=1
gen=0

block_nTime=1317972665
block_nNonce=2084524493

There is not much more needed this should be it and the litecoin.conf needs to be in the data map from litecoin in c:\users\{your windows username}\AppData\Roaming\Litecoin
I mean, as in reading the litecoin.conf file after the application has started, so that the user simply has to select "Solo Mining" and press "Start Mining" to start solo mining in the Mining tab.

Solo mining does not have url/port/user/password because it does need to use RPC to communicate with itself. All the block getwork data needed for solomining is already there in the mining thread.
Jump to: