progranism / Open-Source-FPGA-Bitcoin-Miner

A completely open source implementation of a Bitcoin Miner for Altera and Xilinx FPGAs. This project hopes to promote the free and open development of FPGA based mining solutions and secure the future of the Bitcoin project as a whole. A binary release is currently available for the Terasic DE2-115 Development Board, and there are compile-able projects for numerous boards.
GNU General Public License v3.0
1.28k stars 551 forks source link

ERROR: Unable to getwork. Reason: can't read "state(status)": no such variable #40

Open qaziullah opened 2 years ago

qaziullah commented 2 years ago

Hi @progranism,

I am trying to run the given program on DE2-115 for the first time.

FPGA got programed successfully, but the mining script is giving the following error. Could you look into it and let me know what could the reason for this error.

image

jp-diegidio commented 2 years ago

Hi there, I have narrowed it down to the get_work proc in ~/scripts/mine/json_rpc.tcl

I can't do debugging (but you can, e.g. insert some printing to the console in the script), nor have I been following the evolution of the getwork protocol lately, if any... Nor am I a TCL programmer, so I may be missing something there.

That said, my just wild guess would be that the do_rpc_request call itself is failing, possibly because your mining pool is looking for params in the request that are simply not there (that "state"?): and then again, I do not know if getwork the protocol has changed in the meantime, or whether it's your pool that is using some customization (you don't say which pool it is, which does not allow really diagnosing this problem)...

Sorry, all quite vague, I just hope you or somebody else will be able to pick it up from here.