1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 20:44:19 +00:00

Put an entry into the work struct telling drivers how much they can roll the ntime themselves.

This commit is contained in:
Con Kolivas 2013-10-25 14:29:43 +11:00
parent 0657b64e38
commit 316e6d61c9
2 changed files with 5 additions and 0 deletions

View File

@ -1911,6 +1911,8 @@ static void gen_gbt_work(struct pool *pool, struct work *work)
work->longpoll = false;
work->getwork_mode = GETWORK_MODE_GBT;
work->work_block = work_block;
/* Nominally allow a driver to ntime roll 60 seconds */
work->drv_rolllimit = 60;
calc_diff(work, 0);
cgtime(&work->tv_staged);
}
@ -6013,6 +6015,8 @@ static void gen_stratum_work(struct pool *pool, struct work *work)
work->longpoll = false;
work->getwork_mode = GETWORK_MODE_STRATUM;
work->work_block = work_block;
/* Nominally allow a driver to ntime roll 60 seconds */
work->drv_rolllimit = 60;
calc_diff(work, work->sdiff);
cgtime(&work->tv_staged);

View File

@ -1389,6 +1389,7 @@ struct work {
unsigned char hash2[32];
int rolls;
int drv_rolllimit; /* How much the driver can roll ntime */
dev_blk_ctx blk;