diff options
author | Suhas Daftuar <sdaftuar@chaincode.com> | 2016-07-18 12:40:28 -0400 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-07-25 18:08:41 +0200 |
commit | 86edc20a178cc17cdc6915e9e93a7241c27c368c (patch) | |
tree | 4dd4a5f1354ad5d7416b721673e918c4054e5495 /src | |
parent | 73adfe3bb935cead8e4d91f8d1c8a9feb55e4a7d (diff) | |
download | bitcoin-86edc20a178cc17cdc6915e9e93a7241c27c368c.tar.xz |
Scale legacy sigop count in CreateNewBlock
Github-Pull: #8362
Rebased-From: 682aa0f289c550c029733966a2ce3449e4a471df
Diffstat (limited to 'src')
-rw-r--r-- | src/miner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/miner.cpp b/src/miner.cpp index 25a5becf93..9575858840 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -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)) { |