Skip to content
This repository has been archived by the owner on Jan 9, 2021. It is now read-only.

Commit

Permalink
Handle decred new stake version field
Browse files Browse the repository at this point in the history
  • Loading branch information
S74nk0 committed Apr 24, 2017
1 parent 5012a91 commit db0822f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ccminer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,7 @@ static bool stratum_gen_work(struct stratum_ctx *sctx, struct work *work)
//memcpy(&work->data[36], sctx->xnonce1, sctx->xnonce1_size);
//// work->data[36] = swab32(vote); // alt vote submission method
//work->data[37] = (rand()*4) << 8; // random work data
memcpy(&work->data[44], &sctx->job.coinbase[sctx->job.coinbase_size - 4], 4);
sctx->job.height = work->data[32];
//applog_hex(work->data, 180);
} else {
Expand Down

0 comments on commit db0822f

Please sign in to comment.