aboutsummaryrefslogtreecommitdiff
path: root/src/miner.h
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2017-07-30 23:36:33 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2017-08-01 23:00:11 +0200
commit3eb53b867153c957529484b5338d27e69de027c1 (patch)
tree8ef6f359fa547bb48ef1f139c9faef106722887d /src/miner.h
parent70888a39c43a8e680be6b1baecbc9f7c9b63b183 (diff)
downloadbitcoin-3eb53b867153c957529484b5338d27e69de027c1.tar.xz
Avoid returning a BIP9Stats object with uninitialized values
Uninitialized data potentially used in `rpc/blockchain.cpp`: ``` static UniValue BIP9SoftForkDesc(const Consensus::Params& consensusParams, Consensus::DeploymentPos id) { ... const ThresholdState thresholdState = VersionBitsTipState(consensusParams, id); ... if (THRESHOLD_STARTED == thresholdState) { UniValue statsUV(UniValue::VOBJ); BIP9Stats statsStruct = VersionBitsTipStatistics(consensusParams, id); statsUV.push_back(Pair("period", statsStruct.period)); statsUV.push_back(Pair("threshold", statsStruct.threshold)); statsUV.push_back(Pair("elapsed", statsStruct.elapsed)); statsUV.push_back(Pair("count", statsStruct.count)); statsUV.push_back(Pair("possible", statsStruct.possible)); rv.push_back(Pair("statistics", statsUV)); } ... return rv; } ```
Diffstat (limited to 'src/miner.h')
0 files changed, 0 insertions, 0 deletions