You would have to switch algo aswell so i dont think that would work. What we need is the miner to do the following
Start stratum
Connect
Check algo
Start the mining thread for the stratum supplied algo
Everytime a new block is found or the stratum points elsewhere, it checks algo, if different then end the miner and start a new mining thread using the new algo
It would allow a multipool that would work with anything ccminer will work for
I was just asking for something much simpler. Just like slush's miner-proxy.exe for windows. Only problem with this program is that it only supports SHA and Script. If it supported x11 I'd be set.
While I like the idea of a multipool it still won't fit everyone.
For example I might want to mine a different coin with my AMD GPUs then I do with my nVidia as they each do better on different protocols.
Or even just considering purely ccminer compatible cards there will be disagreement with the coin to use. For example right now some would want JackPot and others DarkCoin. Maybe someone else would want HiroCoin or SecureCoin. Now if the pool was going to autoconvert to btc then it's a mute point as you would want to mine the absolute most profitable coin at the moment because it will be dumped.
Ideally a pool operator would set up something like this:
sha-256 port 1
script port 2
quark port 3
x11 port 4
groestl port 5
keccek port 6
hvc port 7
mnr port 8
jackpot port 9
etc
The pool operator then make sure that each type above is pointing to the most profitable coin of that type. This way if someone had an ASIC they could point it at port 1 or port 2 depending on type. Anyone with CGMiner could point to say port 4 to mine the most profitable x11 coin. Same could be done with ccminer without mods.
However, where it would get interesting is for the pool operator to run a separate simple web service that simply return a message with the order of each algo profitable wise. Example "x11(4),quark(3),jackpot(9),mnr(
,script(2),etc". Most people would just switch to the most profitable coin and in this example "x11(4)" would know to switch to x11 algo and use port 4.
By doing it this way I person could put in a config file certain algos to ignore such as "sha-256" or "script" because they know it will crash the computer due to tuning or running to hot. The inverse could also be done where you have to manually setup only the algo you want to run (and have tested).
ccminer could easily be retrofitted to make a call every X minutes to the webservice to check for the most profitable coin. Or could be set to check after every new block is found.
Anyone could probably also write a small quick program that could check for the algo/port to run on and fire off a batch file to run other programs like cgminer also. Of course this would be the "brute force" way by killing off the current process if it needs to switch to a new coin and then starting a new version with the correct command line.
Hell the web service could also return a profitability index with the most profitable getting a 100 score. For example X11 could get 100 while jackpot returns 92. This would allow people with a "certain fondness" for a particular coin to favor it unless something scores X amount more. ie I want to mine jackpot unless something is 10% more valuable.
Something like the above is the way I'd envision it to work.
Carlo
PS But right now I'm just looking for a simple way I can change x11 pools from a central location.
Hmm, maybe I just setup the simple webservice I just mentioned and take the "brute force approach" I just mentioned.