Permalink
Browse files

Scale legacy sigop count in CreateNewBlock

Github-Pull: #8362
Rebased-From: 682aa0f
  • Loading branch information...
sdaftuar authored and laanwj committed Jul 18, 2016
1 parent 73adfe3 commit 86edc20a178cc17cdc6915e9e93a7241c27c368c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/miner.cpp
View
@@ -187,7 +187,7 @@ CBlockTemplate* BlockAssembler::CreateNewBlock(const CScript& scriptPubKeyIn)
UpdateTime(pblock, chainparams.GetConsensus(), pindexPrev);
pblock->nBits = GetNextWorkRequired(pindexPrev, pblock, chainparams.GetConsensus());
pblock->nNonce = 0;
pblocktemplate->vTxSigOpsCost[0] = GetLegacySigOpCount(pblock->vtx[0]);
pblocktemplate->vTxSigOpsCost[0] = WITNESS_SCALE_FACTOR * GetLegacySigOpCount(pblock->vtx[0]);
CValidationState state;
if (!TestBlockValidity(state, chainparams, *pblock, pindexPrev, false, false)) {

0 comments on commit 86edc20

Please sign in to comment.