Skip to content

Conversation

@stevenroose
Copy link
Contributor

Noticed that the statistics are not always shown.

@maflcko maflcko changed the title Fix nit in getblockchaininfo doc: Fix nit in getblockchaininfo Mar 13, 2020
Copy link
Contributor

@promag promag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK fb15bfd.

Relevant code

bitcoin/src/rpc/blockchain.cpp

Lines 1151 to 1161 in 67dfd18

if (ThresholdState::STARTED == thresholdState)
{
UniValue statsUV(UniValue::VOBJ);
BIP9Stats statsStruct = VersionBitsTipStatistics(consensusParams, id);
statsUV.pushKV("period", statsStruct.period);
statsUV.pushKV("threshold", statsStruct.threshold);
statsUV.pushKV("elapsed", statsStruct.elapsed);
statsUV.pushKV("count", statsStruct.count);
statsUV.pushKV("possible", statsStruct.possible);
bip9.pushKV("statistics", statsUV);
}

@laanwj
Copy link
Member

laanwj commented Mar 16, 2020

ACK fb15bfd

@laanwj laanwj merged commit a64e5be into bitcoin:master Mar 16, 2020
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Mar 16, 2020
fb15bfd Fix nit in getblockchaininfo (Steven Roose)

Pull request description:

  Noticed that the statistics are not always shown.

ACKs for top commit:
  laanwj:
    ACK fb15bfd
  promag:
    ACK fb15bfd.

Tree-SHA512: bccbfdff03107d14967f6530eec0bcada7ba8eb16c61b829119533a73f2ead742a0da6a473b7962b15e25cd685c8f155506ab16d4a95b20352d3fd1b4b0164a3
sidhujag pushed a commit to syscoin-core/syscoin that referenced this pull request Nov 10, 2020
fb15bfd Fix nit in getblockchaininfo (Steven Roose)

Pull request description:

  Noticed that the statistics are not always shown.

ACKs for top commit:
  laanwj:
    ACK fb15bfd
  promag:
    ACK fb15bfd.

Tree-SHA512: bccbfdff03107d14967f6530eec0bcada7ba8eb16c61b829119533a73f2ead742a0da6a473b7962b15e25cd685c8f155506ab16d4a95b20352d3fd1b4b0164a3
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants