1lann / krist-miner

The second fastest open source CPU Krist miner, written in Go.
MIT License
6 stars 5 forks source link

Update work fails sometimes. #2

Closed bauen1 closed 8 years ago

bauen1 commented 8 years ago

It just prints failed to update work: Get http://krist.ceriat.net/?getwork: EOF, Looking at what krist.ceriat.net/?work returns, there: 65789EOF or there is no newline befor the end of file wich might be the issue.

dmarcuse commented 8 years ago

This is probably an issue that I've also encountered with the Krist server itself. Oftentimes, following a recent block submission, the database (which uses SQLite) will be temporarily locked. This produces additional warnings and errors, which are appended to the beginning of the response from the API calls, which interferes with converting it to a numerical value. I'm not sure if that is the specific issue that's causing this, but it happens with ?lastblock, ?submitblock and ?getwork occasionally.

bauen1 commented 8 years ago

So this needs an server side fix? Actually I'm getting this without a block being submitted recently.

1lann commented 8 years ago

It means that the server responded with an incomplete HTTP response. The error isn't critical unless you get it at startup because it will just continue using the last known work.

bauen1 commented 8 years ago

Ok then :smile: