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

Commit db0822f

Browse files
committed
Handle decred new stake version field
1 parent 5012a91 commit db0822f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ccminer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,6 +1431,7 @@ static bool stratum_gen_work(struct stratum_ctx *sctx, struct work *work)
14311431
//memcpy(&work->data[36], sctx->xnonce1, sctx->xnonce1_size);
14321432
//// work->data[36] = swab32(vote); // alt vote submission method
14331433
//work->data[37] = (rand()*4) << 8; // random work data
1434+
memcpy(&work->data[44], &sctx->job.coinbase[sctx->job.coinbase_size - 4], 4);
14341435
sctx->job.height = work->data[32];
14351436
//applog_hex(work->data, 180);
14361437
} else {

0 commit comments

Comments
 (0)