Browse Source

correct gen_hash

pull/1/head
orignal 7 years ago
parent
commit
09ec23106b
  1. 2
      sgminer.c

2
sgminer.c

@ -6156,7 +6156,7 @@ static void gen_stratum_work(struct pool *pool, struct work *work) @@ -6156,7 +6156,7 @@ static void gen_stratum_work(struct pool *pool, struct work *work)
memcpy(merkle_sha + 32, merkle_sha, 32);
else
memcpy(merkle_sha + 32, pool->swork.merkle_bin[i], 32);
gen_hash(merkle_sha, 64, merkle_root);
pool->algorithm.gen_hash(merkle_sha, 64, merkle_root);
memcpy(merkle_sha, merkle_root, 32);
}
}

Loading…
Cancel
Save