From db0822ffd1c9f16fdfd5afcc07e445b4c45126d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanko=20Krsti=C4=87?= Date: Mon, 24 Apr 2017 14:06:03 +0200 Subject: [PATCH] Handle decred new stake version field --- ccminer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ccminer.cpp b/ccminer.cpp index 5e1d821046..8c714cf9e1 100644 --- a/ccminer.cpp +++ b/ccminer.cpp @@ -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 {