Hi Luke, I am having a bit of a problem adding and setting pool priories via the api. What I sam trying to do is;-
1. Add a new pool ( api command 'addpool' parameter 'stratum+tcp://stratum.btcguild.com:3333,User,Pass' )
2. Find the new pool id via the API (api command pools )
3. Switch to the new pool (api command switchpool)
I then get the following output from the running miner;-
[2013-10-12 01:30:09] Switching to pool 1 stratum+tcp://stratum.btcguild.com:3333
[2013-10-12 01:30:12] Stratum from pool 1 requested work update
[2013-10-12 01:30:12] Pool 1 is hiding block contents from us
[2013-10-12 01:30:12] Reconnect requested from pool 1 to stratum-lb-12j9j.btcguild.com:3333
[2013-10-12 01:30:13] Pool 1 is issuing work for an old block: 000000000000000f32406b5c5eab162c30268d45Pool 1 is issuing work for an old block: 000000000000
000f32406b5c5eab162c30268d
[2013-10-12 01:30:13] Stratum from pool 1 requested work update
[2013-10-12 01:30:40] Stratum from pool 1 requested work update
[2013-10-12 01:31:10] Stratum from pool 1 requested work update
[2013-10-12 01:31:40] Stratum from pool 1 requested work update
[2013-10-12 01:32:10] Stratum from pool 1 requested work update
[2013-10-12 01:32:40] Stratum from pool 1 requested work update
... bla bla bla ...
Strange thing is, when I disable and remove the new pool via the api it successfully starts to work again with the old pool;-
[2013-10-12 01:45:09] Switching to pool 0 http://stratum.bitcoin.cz:3333
[2013-10-12 01:45:10] Stratum from pool 0 requested work update
[2013-10-12 01:45:14] Stratum from pool 0 requested work update
[2013-10-12 01:45:14] Stratum from pool 0 requested work update
[2013-10-12 01:45:22] Stratum from pool 0 detected new block
[2013-10-12 01:45:23] Staged work underrun; increasing queue minimum to 7
[2013-10-12 01:45:23] Stratum from pool 0 requested work update
[2013-10-12 01:45:26] Accepted 0d3a0a9f ICA 3 Diff 19/4
[2013-10-12 01:45:26] Accepted 1844399b ICA 0 Diff 10/4
[2013-10-12 01:45:28] Accepted 0fcb2216 ICA12 Diff 16/4
[2013-10-12 01:45:35] Accepted 124bbf09 ICA12 Diff 13/4
[2013-10-12 01:45:35] Accepted 035fa12a ICA 1 Diff 75/4
[2013-10-12 01:45:38] Accepted 3bbf3051 ICA 7 Diff 4/4
[2013-10-12 01:45:40] Accepted 1f310966 ICA 7 Diff 8/4
Any ideas? The code works perfectly in cgminer and I am desperately trying to keep both miners working in my project (minepeon) to give people the choice as to what miner they want to run. MinePeon uses the api allot to interact with the miner.
Thanks
Neil