Browse Source

Skip stratum transaction download when there are no transactions

Luke Dashjr 13 years ago
parent
commit
cda5e29cb9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      util.c

+ 1 - 0
util.c

@@ -1118,6 +1118,7 @@ static bool parse_notify(struct pool *pool, json_t *val)
 	pool->getwork_requested++;
 	pool->getwork_requested++;
 	total_getworks++;
 	total_getworks++;
 
 
+	if (merkles)
 	{
 	{
 		// Request transaction data to discourage pools from doing anything shady
 		// Request transaction data to discourage pools from doing anything shady
 		char s[1024];
 		char s[1024];