Do not skip submission of old work

This increases compatibility with p2pool
This commit is contained in:
pooler 2012-02-08 15:47:32 +01:00
parent 9ba5e94d3d
commit 4d2ee802cd

View file

@ -266,10 +266,6 @@ static bool submit_upstream_work(CURL *curl, const struct work *work)
int i; int i;
bool rc = false; bool rc = false;
/* pass if the previous hash is not the current previous hash */
if (memcmp(work->data + 4, g_work.data + 4, 32))
return true;
/* build hex string */ /* build hex string */
hexstr = bin2hex(work->data, sizeof(work->data)); hexstr = bin2hex(work->data, sizeof(work->data));
if (unlikely(!hexstr)) { if (unlikely(!hexstr)) {