Browse Source

Bugfix: Update current_block_id for fixed set_curblock

Luke Dashjr 13 years ago
parent
commit
fea3ca9414
1 changed files with 1 additions and 1 deletions
  1. 1 1
      miner.c

+ 1 - 1
miner.c

@@ -3173,7 +3173,7 @@ static void set_curblock(char *hexstr, unsigned char *hash)
 	unsigned char hash_swap[32];
 	char *old_hash;
 
-	current_block_id = ((uint32_t*)hash)[1];
+	current_block_id = ((uint32_t*)hash)[0];
 	strcpy(current_block, hexstr);
 	swap256(hash_swap, hash);
 	swap32tole(hash_swap, hash_swap, 32 / 4);