@@ -1389,6 +1389,7 @@ static void SoftForkDescPushBack(const CBlockIndex* active_chain_tip, UniValue&
13891389 UniValue statsUV (UniValue::VOBJ);
13901390 BIP9Stats statsStruct = g_versionbitscache.Statistics (active_chain_tip, consensusParams, id);
13911391 statsUV.pushKV (" period" , statsStruct.period );
1392+ statsUV.pushKV (" period_start" , active_chain_tip->nHeight + 1 - statsStruct.elapsed );
13921393 statsUV.pushKV (" elapsed" , statsStruct.elapsed );
13931394 statsUV.pushKV (" count" , statsStruct.count );
13941395 if (ThresholdState::LOCKED_IN != thresholdState) {
@@ -1449,6 +1450,7 @@ RPCHelpMan getblockchaininfo()
14491450 {RPCResult::Type::OBJ, " statistics" , " numeric statistics about signalling for a softfork (only for \" started\" and \" locked_in\" status)" ,
14501451 {
14511452 {RPCResult::Type::NUM, " period" , " the length in blocks of the signalling period" },
1453+ {RPCResult::Type::NUM, " period_start" , " height of the first block of this signalling period" },
14521454 {RPCResult::Type::NUM, " threshold" , " the number of blocks with the version bit set required to activate the feature (only for \" started\" status)" },
14531455 {RPCResult::Type::NUM, " elapsed" , " the number of blocks elapsed since the beginning of the current period" },
14541456 {RPCResult::Type::NUM, " count" , " the number of blocks with the version bit set in the current period" },
0 commit comments