@@ -1099,8 +1099,8 @@ static void SoftForkDescPushBack(const CBlockIndex* blockindex, UniValue& softfo
10991099
11001100 UniValue bip9 (UniValue::VOBJ);
11011101
1102- const ThresholdState next_state = g_versionbitscache .State (blockindex, chainman.GetConsensus (), id);
1103- const ThresholdState current_state = g_versionbitscache .State (blockindex->pprev , chainman.GetConsensus (), id);
1102+ const ThresholdState next_state = chainman. m_versionbitscache .State (blockindex, chainman.GetConsensus (), id);
1103+ const ThresholdState current_state = chainman. m_versionbitscache .State (blockindex->pprev , chainman.GetConsensus (), id);
11041104
11051105 const bool has_signal = (ThresholdState::STARTED == current_state || ThresholdState::LOCKED_IN == current_state);
11061106
@@ -1114,14 +1114,14 @@ static void SoftForkDescPushBack(const CBlockIndex* blockindex, UniValue& softfo
11141114
11151115 // BIP9 status
11161116 bip9.pushKV (" status" , get_state_name (current_state));
1117- bip9.pushKV (" since" , g_versionbitscache .StateSinceHeight (blockindex->pprev , chainman.GetConsensus (), id));
1117+ bip9.pushKV (" since" , chainman. m_versionbitscache .StateSinceHeight (blockindex->pprev , chainman.GetConsensus (), id));
11181118 bip9.pushKV (" status_next" , get_state_name (next_state));
11191119
11201120 // BIP9 signalling status, if applicable
11211121 if (has_signal) {
11221122 UniValue statsUV (UniValue::VOBJ);
11231123 std::vector<bool > signals;
1124- BIP9Stats statsStruct = g_versionbitscache .Statistics (blockindex, chainman.GetConsensus (), id, &signals);
1124+ BIP9Stats statsStruct = chainman. m_versionbitscache .Statistics (blockindex, chainman.GetConsensus (), id, &signals);
11251125 statsUV.pushKV (" period" , statsStruct.period );
11261126 statsUV.pushKV (" elapsed" , statsStruct.elapsed );
11271127 statsUV.pushKV (" count" , statsStruct.count );
@@ -1142,7 +1142,7 @@ static void SoftForkDescPushBack(const CBlockIndex* blockindex, UniValue& softfo
11421142 UniValue rv (UniValue::VOBJ);
11431143 rv.pushKV (" type" , " bip9" );
11441144 if (ThresholdState::ACTIVE == next_state) {
1145- rv.pushKV (" height" , g_versionbitscache .StateSinceHeight (blockindex, chainman.GetConsensus (), id));
1145+ rv.pushKV (" height" , chainman. m_versionbitscache .StateSinceHeight (blockindex, chainman.GetConsensus (), id));
11461146 }
11471147 rv.pushKV (" active" , ThresholdState::ACTIVE == next_state);
11481148 rv.pushKV (" bip9" , bip9);
0 commit comments