Browse Source

Extranonce2 should be added before coinbase2.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
41acd23d0f
  1. 4
      cgminer.c

4
cgminer.c

@ -4357,8 +4357,8 @@ static void gen_stratum_work(struct pool *pool, struct work *work)
coinbase = alloca(len); coinbase = alloca(len);
hex2bin(coinbase, pool->swork.coinbase1, cb1_len); hex2bin(coinbase, pool->swork.coinbase1, cb1_len);
hex2bin(coinbase + cb1_len, pool->nonce1, n1_len); hex2bin(coinbase + cb1_len, pool->nonce1, n1_len);
hex2bin(coinbase + cb1_len + n1_len, pool->swork.coinbase2, cb2_len); hex2bin(coinbase + cb1_len + n1_len, nonce2, pool->n2size);
hex2bin(coinbase + cb1_len + n1_len + cb2_len, nonce2, pool->n2size); hex2bin(coinbase + cb1_len + n1_len + pool->n2size, pool->swork.coinbase2, cb2_len);
/* Generate merkle root */ /* Generate merkle root */
gen_hash(coinbase, merkle_root, len); gen_hash(coinbase, merkle_root, len);

Loading…
Cancel
Save