Browse Source

Bugfix: Accept actual percentages for --coinbase-check-percent

Luke Dashjr 11 years ago
parent
commit
ae1676e5d5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      miner.c

+ 2 - 2
miner.c

@@ -1647,9 +1647,9 @@ static char *set_cbcperc(const char *arg)
 	if (!pool->cb_param.scripts)
 	if (!pool->cb_param.scripts)
 		return "Define --coinbase-check-addr list first, then the --coinbase-check-total argument";
 		return "Define --coinbase-check-addr list first, then the --coinbase-check-total argument";
 	
 	
-	pool->cb_param.perc = atof(arg);
+	pool->cb_param.perc = atof(arg) / 100;
 	if (pool->cb_param.perc < 0.0 || pool->cb_param.perc > 1.0)
 	if (pool->cb_param.perc < 0.0 || pool->cb_param.perc > 1.0)
-		return "The percentage should be between 0 and 1";
+		return "The percentage should be between 0 and 100";
 	
 	
 	return NULL;
 	return NULL;
 }
 }