Post
Topic
Board CPU/GPU Bitcoin mining hardware
Re: Ufasoft Miner Thread - SSE2/OpenCL/AMD CAL/CUDA for Windows, v0.20 (2011-August)
by
Sleepy
on 19/09/2011, 19:42:29 UTC
I encountered an Problem with Ufasoft and PoolServerJ.
It seems PoolServerJ only accept lowercase Results and Ufasoft sends it uppercase...

However, till this behavior is fixed in PoolServerJ, I´ve got a little fix for Ufasoft:

In bitcoin-client.cpp:

At BitcoinMiner::SubmitResult insert
Code:
arg.MakeLower();
right before
Code:
String r = wc.UploadString(GetCurrentUrl(), arg);

If you want the displayed result also in lowercase, insert
Code:
shash.MakeLower();
before
Code:
TRACE_BITCOIN(cout << (isatty(fileno(stdout)) ? "\r" : "") << DateTime::Now() << " Result: " << shash << (r ? " accepted" : " rejected") << endl);


Since the conversion is only performed when an result is already local tested it should not affect the performance at all.