Browse Source

Bugfix: Call pool_set_opaque from work_decode, so block content hiding/providing messages work for getwork/GBT

Luke Dashjr 12 years ago
parent
commit
bfd09a22da
1 changed files with 2 additions and 0 deletions
  1. 2 0
      miner.c

+ 2 - 0
miner.c

@@ -1912,6 +1912,8 @@ static bool work_decode(struct pool *pool, struct work *work, json_t *val)
 	memset(work->hash, 0, sizeof(work->hash));
 
 	gettimeofday(&work->tv_staged, NULL);
+	
+	pool_set_opaque(pool, !work->tmpl);
 
 	ret = true;