moopless / stratum-mining-litecoin

This fork is no longer maintained. Please use https://github.com/ahmedbodi/stratum-mining
Other
38 stars 35 forks source link

Submit Block returns 500 Internal Server Error (GrandCoin) #74

Open thatfrugalguy opened 10 years ago

thatfrugalguy commented 10 years ago

I am trying to set up a pool with GrandCoin and I also get the 500 Internal Server Error. When I post the data myself using curl, it returns: {"result":null,"error":{"code":-32601,"message":"Method not found"},"id":"1"}

Curl command: curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic " -d '{"params": [""], "jsonrpc": "2.0", "method": "submitblock", "id": "1"}' http://localhost:12378

Any thoughts?

thatfrugalguy commented 10 years ago

Should mention that above, it should read: "params": [""]

Not sure if this help, but when it fails the submit block, it falls back to the getblocktemplate, which also fails:

curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic " -d '{"params": [{"data": "", "mode": "submit"}], "jsonrpc": "2.0", "method": "getblocktemplate", "id": "1"}' http://localhost:12378

{"result":null,"error":{"code":-1,"message":"ReadCompactSize() : size too large"},"id":"1"}