block header commits to height

This commit is contained in:
instagibbs 2016-05-27 11:10:44 -04:00 committed by Gregory Sanders
parent 15275158b8
commit e637e5a5da
6 changed files with 22 additions and 1 deletions

View file

@ -553,6 +553,9 @@ UniValue getblocktemplate(const UniValue& params, bool fHelp)
// NOTE: If at some point we support pre-segwit miners post-segwit-activation, this needs to take segwit support into consideration
const bool fPreSegWit = (THRESHOLD_ACTIVE != VersionBitsState(pindexPrev, consensusParams, Consensus::DEPLOYMENT_SEGWIT, versionbitscache));
// Update height in header
pblock->nHeight = pindexPrev->nHeight+1;
UniValue aCaps(UniValue::VARR); aCaps.push_back("proposal");
UniValue transactions(UniValue::VARR);