area



Offline



Activity: 177

Merit: 100







Full MemberActivity: 177Merit: 100 [ANN] CryptoSwitcher - Automatically mine the best coin. April 10, 2013, 07:00:30 AM

Last edit: May 06, 2013, 08:34:05 AM by area #1 What is CryptoSwitcher?

You've heard about these altcoins, and none have them have taken your fancy; you think they're all clones and destined to failure. You think BTC is the one true way, and are still mining it. The altcoins aren't useless to you. Many of them are more profitable to mine short-term than BTC if you just sell them at the market price.



How can I used it?

The source is available at



How does it work?

The actual maths is done by the websites:



http://dustcoin.com/mining

http://coinchoose.com

(Vanity address mining only - down at the moment?)



This is just a wrapper to use the above sites to pick the most appropriate mining activity for your hardware, and make sure that it's doing the right thing for you. It's written in Python, and uses scripts (which the end-user must write, in the language of their choice; some samples are included) to stop other miners and launch the appropriate one.



Isn't this a terrible idea?

Maybe. I honestly haven't decided whether coin-hopping is a bad thing long term. The consequences of wide-spread adoption that I can think of are:

This would tie the value of all alt-coins to BTC.

It would cause massive difficulty spikes as retargets happen, causing mining an alt-coin to become less profitable and hoppers to mine elsewhere. The dedicated miners on that coin are then left with a much higher difficulty than they should have, and struggle to find blocks. We have seen this happen already with TRC, which is still struggling to deal with the aftermath

The closest parallel to this I can think of is pool-hopping. However, pool-hopping eventually brought about good - nearly all hoppable pools eventually moved from proportional payouts to an unhoppable payout scheme (e.g. DGM), and pool hopping died as an art, despite the best efforts of P4Man and others. I feel like the same should happen here; if an alt-coin is unable to convince people of its merits such that it is mined regardless of profitability compared to mining the more accepted BTC - or is unable to deal with the consequences of not doing so - then perhaps it doesn't deserve to succeed.



I think this is probably the most contentious issue with this project, and is probably going to get worse as BTC difficulty continues to rise with the advent of ASICs, and people with outdated hardware look to put it to use. I welcome input on this particular aspect.



Features

Support for both Dustcoin and Coinchoose, and all the coins they list (though only one site may be used at a time)

Takes merged mining into account if you say its available

Will automatically sell coins for BTC on BTC-E and/or Vircurex if you choose.

Todo

Vircurex support

Use both Dustcoin and Coinchoose at the same time?

Use the CGMiner API to switch between coins with the same hashing algorithm in one CGminer instance. If a user were to allow remote API access, then this could in theory be provided as a service, without the user having to run the script themselves.

Monitor miners for dead pools. You've heard about these altcoins, and none have them have taken your fancy; you think they're all clones and destined to failure. You think BTC is the one true way, and are still mining it. The altcoins aren't useless to you. Many of them are more profitable to mine short-term than BTC if you just sell them at the market price.The source is available at https://github.com/area/CryptoSwitcher . Clone it, and then edit the cryptoswitcher.config.sample file as it instructs in the comments. If you wish to use BTC-E, you will need to edit the 'key.sample' file to contain your API key, and move it to 'key'. The README included should be a bit more comprehensive than the instructions here. If you already have scripts to start and stop mining, then setup should be easy for you.The actual maths is done by the websites: http://fizzisist.com (Vanity address mining only - down at the moment?)This is just a wrapper to use the above sites to pick the most appropriate mining activity for your hardware, and make sure that it's doing the right thing for you. It's written in Python, and uses scripts (which the end-user must write, in the language of their choice; some samples are included) to stop other miners and launch the appropriate one.Maybe. I honestly haven't decided whether coin-hopping is a bad thing long term. The consequences of wide-spread adoption that I can think of are:The closest parallel to this I can think of is pool-hopping. However, pool-hopping eventually brought about good - nearly all hoppable pools eventually moved from proportional payouts to an unhoppable payout scheme (e.g. DGM), and pool hopping died as an art, despite the best efforts of P4Man and others. I feel like the same should happen here; if an alt-coin is unable to convince people of its merits such that it is mined regardless of profitability compared to mining the more accepted BTC - or is unable to deal with the consequences of not doing so - then perhaps it doesn't deserve to succeed.I think this is probably the most contentious issue with this project, and is probably going to get worse as BTC difficulty continues to rise with the advent of ASICs, and people with outdated hardware look to put it to use. I welcome input on this particular aspect.

What is consensus? dvertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. dvertised sites are notendorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal inyour jurisdiction. Advertise here.

Simran



Offline



Activity: 714

Merit: 500









Hero MemberActivity: 714Merit: 500 Re: [ANN] CryptoSwitcher - Automatically mine the best coin. April 10, 2013, 12:21:26 PM #3 Quote from: area on April 10, 2013, 07:00:30 AM What is CryptoSwitcher?

You've heard about these altcoins, and none have them have taken your fancy; you think they're all clones and destined to failure. You think BTC is the one true way, and are still mining it. The altcoins aren't useless to you. Many of them are more profitable to mine short-term than BTC if you just sell them at the market price.



How can I used it?

The source is available at



How does it work?

The actual maths is done by the websites:



Dustcoin

Coinchoose

(Vanity address mining only - down at the moment?)



This is just a wrapper to use the above sites to pick the most appropriate mining activity for your hardware, and make sure that it's doing the right thing for you. It's written in Python, and uses scripts (which the end-user must write, in the language of their choice; some samples are included) to stop other miners and launch the appropriate one.



Isn't this a terrible idea?

Maybe. I honestly haven't decided whether coin-hopping is a bad thing long term. The consequences of wide-spread adoption that I can think of are:

This would tie the value of all alt-coins to BTC.

It would cause massive difficulty spikes as retargets happen, causing mining an alt-coin to become less profitable and hoppers to mine elsewhere. The dedicated miners on that coin are then left with a much higher difficulty than they should have, and struggle to find blocks. We have seen this happen already with TRC, which is still struggling to deal with the aftermath

The closest parallel to this I can think of is pool-hopping. However, pool-hopping eventually brought about good - nearly all hoppable pools eventually moved from proportional payouts to an unhoppable payout scheme (e.g. DGM), and pool hopping died as an art, despite the best efforts of P4Man and others. I feel like the same should happen here; if an alt-coin is unable to convince people of its merits such that it is mined regardless of profitability compared to mining the more accepted BTC - or is unable to deal with the consequences of not doing so - then perhaps it doesn't deserve to succeed.



I think this is probably the most contentious issue with this project, and is probably going to get worse as BTC difficulty continues to rise with the advent of ASICs, and people with outdated hardware look to put it to use. I welcome input on this particular aspect.



Features

Support for both Dustcoin and Coinchoose, and all the coins they list (though only one site may be used at a time)

Takes merged mining into account if you say its available

Will automatically sell coins for BTC on BTC-E if you choose

Todo

Vircurex support

Use both Dustcoin and Coinchoose at the same time?

Use the CGMiner API to switch between coins with the same hashing algorithm in one CGminer instance. If a user were to allow remote API access, then this could in theory be provided as a service, without the user having to run the script themselves.

You've heard about these altcoins, and none have them have taken your fancy; you think they're all clones and destined to failure. You think BTC is the one true way, and are still mining it. The altcoins aren't useless to you. Many of them are more profitable to mine short-term than BTC if you just sell them at the market price.The source is available at https://github.com/area/CryptoSwitcher . Clone it, and then edit the cryptoswitcher.config.sample file as it instructs in the comments. If you wish to use BTC-E, you will need to edit the 'key.sample' file to contain your API key, and move it to 'key'. The README included should be a bit more comprehensive than the instructions here. If you already have scripts to start and stop mining, then setup should be easy for you.The actual maths is done by the websites: Fizzisist (Vanity address mining only - down at the moment?)This is just a wrapper to use the above sites to pick the most appropriate mining activity for your hardware, and make sure that it's doing the right thing for you. It's written in Python, and uses scripts (which the end-user must write, in the language of their choice; some samples are included) to stop other miners and launch the appropriate one.Maybe. I honestly haven't decided whether coin-hopping is a bad thing long term. The consequences of wide-spread adoption that I can think of are:The closest parallel to this I can think of is pool-hopping. However, pool-hopping eventually brought about good - nearly all hoppable pools eventually moved from proportional payouts to an unhoppable payout scheme (e.g. DGM), and pool hopping died as an art, despite the best efforts of P4Man and others. I feel like the same should happen here; if an alt-coin is unable to convince people of its merits such that it is mined regardless of profitability compared to mining the more accepted BTC - or is unable to deal with the consequences of not doing so - then perhaps it doesn't deserve to succeed.I think this is probably the most contentious issue with this project, and is probably going to get worse as BTC difficulty continues to rise with the advent of ASICs, and people with outdated hardware look to put it to use. I welcome input on this particular aspect.

If this uses Scrypt and SHA-256, how do you switch between them in the miner files? If this uses Scrypt and SHA-256, how do you switch between them in the miner files? *Image Removed*

Donate LTC: LRgbgTa3XNQSEUhnwC6Ye2vjiCV2CNRpib

Donate BTC: 1AGP6xPTRvsAVhsRsBX13NUH6p6LJjyeiA Donate LTC: LRgbgTa3XNQSEUhnwC6Ye2vjiCV2CNRpibDonate BTC: 1AGP6xPTRvsAVhsRsBX13NUH6p6LJjyeiA

area



Offline



Activity: 177

Merit: 100







Full MemberActivity: 177Merit: 100 Re: [ANN] CryptoSwitcher - Automatically mine the best coin. April 10, 2013, 01:08:37 PM #5 Quote from: Simran on April 10, 2013, 12:21:26 PM If this uses Scrypt and SHA-256, how do you switch between them in the miner files?



The sample scripts I've included are for Bitcoin and Litecoin, and show how this is done. In short, if we are mining BTC and the script decides to switch to LTC, litecoin.sh is run. The first thing that litecoin.sh does is close all instances of CGMiner using the CGMiner API. It then sets the clocks correctly for LTC mining, and only then does it spool up a new instance of CGminer, mining the desired coin, making sure that API access is enabled for future switching. Each script you write and use (i.e. beyond the litecoin.sh and bitcoin.sh files included) should do roughly the same thing. The sample scripts I've included are for Bitcoin and Litecoin, and show how this is done. In short, if we are mining BTC and the script decides to switch to LTC, litecoin.sh is run. The first thing that litecoin.sh does is close all instances of CGMiner using the CGMiner API. It then sets the clocks correctly for LTC mining, and only then does it spool up a new instance of CGminer, mining the desired coin, making sure that API access is enabled for future switching. Each script you write and use (i.e. beyond the litecoin.sh and bitcoin.sh files included) should do roughly the same thing.

area



Offline



Activity: 177

Merit: 100







Full MemberActivity: 177Merit: 100 Re: [ANN] CryptoSwitcher - Automatically mine the best coin. April 11, 2013, 08:28:35 AM #10 Quote from: bajanboost on April 11, 2013, 08:24:10 AM It would be nice if you included a pool failover for each coin.



For example if the profitability was showing litecoin and my rigs switched to that, then if a pool is dead / failing, the rig will switch pools.



Agreed, I've been thinking about this too and looking into the CGminer API. For now, I can only recommend you have backup pools in your CGminer configuration files, but I realise that for the more exotic coins that's probably easier said than done. Agreed, I've been thinking about this too and looking into the CGminer API. For now, I can only recommend you have backup pools in your CGminer configuration files, but I realise that for the more exotic coins that's probably easier said than done.

celkaris



Offline



Activity: 148

Merit: 100







Full MemberActivity: 148Merit: 100 Re: [ANN] CryptoSwitcher - Automatically mine the best coin. April 12, 2013, 01:28:06 AM #12



you'll just waste electricity (unless you already planned to dump every single coin as soon as it's received, and forget about those altcoins when they're completely dead, but i'd bet you won't find buyers once those indicators turns red)





you guys realize that if this gets popular enough, every single coin out there will put its difficulty so high that the profitability indicator will never go green again, leading to miners leaving the chain, finally killing all those coins ?you'll just waste electricity (unless you already planned to dump every single coin as soon as it's received, and forget about those altcoins when they're completely dead, but i'd bet you won't find buyers once those indicators turns red)

fcmatt



Offline



Activity: 1792

Merit: 1001







LegendaryActivity: 1792Merit: 1001 Re: [ANN] CryptoSwitcher - Automatically mine the best coin. April 12, 2013, 01:42:03 AM #14 Quote from: celkaris on April 12, 2013, 01:28:06 AM



you'll just waste electricity (unless you already planned to dump every single coin as soon as it's received, and forget about those altcoins when they're completely dead, but i'd bet you won't find buyers once those indicators turns red)







you guys realize that if this gets popular enough, every single coin out there will put its difficulty so high that the profitability indicator will never go green again, leading to miners leaving the chain, finally killing all those coins ?you'll just waste electricity (unless you already planned to dump every single coin as soon as it's received, and forget about those altcoins when they're completely dead, but i'd bet you won't find buyers once those indicators turns red)

More likely they will hop around and gets less due to pool design now days which reward steady miners.

Or profitability will even out for all of them making it pointless. More likely they will hop around and gets less due to pool design now days which reward steady miners.Or profitability will even out for all of them making it pointless.

bajanboost



Offline



Activity: 53

Merit: 0









NewbieActivity: 53Merit: 0 Re: [ANN] CryptoSwitcher - Automatically mine the best coin. April 12, 2013, 04:23:33 AM #16 Quote from: area on April 11, 2013, 08:28:35 AM Quote from: bajanboost on April 11, 2013, 08:24:10 AM It would be nice if you included a pool failover for each coin.



For example if the profitability was showing litecoin and my rigs switched to that, then if a pool is dead / failing, the rig will switch pools.



Agreed, I've been thinking about this too and looking into the CGminer API. For now, I can only recommend you have backup pools in your CGminer configuration files, but I realise that for the more exotic coins that's probably easier said than done.

Agreed, I've been thinking about this too and looking into the CGminer API. For now, I can only recommend you have backup pools in your CGminer configuration files, but I realise that for the more exotic coins that's probably easier said than done.

It can be done. I have seen pool switching scripts - Allow your users to update a single config file:



Litecoin Pools:

pool1 - notroll.in -u -p

pool2 - etc etc



Bitcoin Pools:



etc etc...



Following simple logic, allow a user to update his config with all pools he wants - then set triggers



example:



failconnect () //if failure to connect after 60 seconds, switch pool

highstale () //if high stale rate then drop pool



Thoughts? It can be done. I have seen pool switching scripts - Allow your users to update a single config file:Litecoin Pools:pool1 - notroll.in -u -ppool2 - etc etcBitcoin Pools:etc etc...Following simple logic, allow a user to update his config with all pools he wants - then set triggersexample:failconnect () //if failure to connect after 60 seconds, switch poolhighstale () //if high stale rate then drop poolThoughts?