mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
fixup: compilation errors
This commit is contained in:
parent
3e5242283c
commit
3574550382
@ -21,7 +21,7 @@
|
||||
#include <univalue.h>
|
||||
#include <messagesigner.h>
|
||||
#include <uint256.h>
|
||||
#include <statsd_client.h>
|
||||
#include <stats/client.h>
|
||||
|
||||
#include <optional>
|
||||
#include <memory>
|
||||
@ -646,14 +646,14 @@ bool CDeterministicMNManager::ProcessBlock(const CBlock& block, gsl::not_null<co
|
||||
updatesRet = {newList, oldList, diff};
|
||||
}
|
||||
|
||||
statsClient.gauge("masternodes.count", newList.GetAllMNsCount());
|
||||
statsClient.gauge("masternodes.weighted_count", newList.GetValidWeightedMNsCount());
|
||||
statsClient.gauge("masternodes.enabled", newList.GetValidMNsCount());
|
||||
statsClient.gauge("masternodes.weighted_enabled", newList.GetValidWeightedMNsCount());
|
||||
statsClient.gauge("masternodes.evo.count", newList.GetAllEvoCount());
|
||||
statsClient.gauge("masternodes.evo.enabled", newList.GetValidEvoCount());
|
||||
statsClient.gauge("masternodes.mn.count", newList.GetAllMNsCount() - newList.GetAllEvoCount());
|
||||
statsClient.gauge("masternodes.mn.enabled", newList.GetValidMNsCount() - newList.GetValidEvoCount());
|
||||
::g_stats_client->gauge("masternodes.count", newList.GetAllMNsCount());
|
||||
::g_stats_client->gauge("masternodes.weighted_count", newList.GetValidWeightedMNsCount());
|
||||
::g_stats_client->gauge("masternodes.enabled", newList.GetValidMNsCount());
|
||||
::g_stats_client->gauge("masternodes.weighted_enabled", newList.GetValidWeightedMNsCount());
|
||||
::g_stats_client->gauge("masternodes.evo.count", newList.GetAllEvoCount());
|
||||
::g_stats_client->gauge("masternodes.evo.enabled", newList.GetValidEvoCount());
|
||||
::g_stats_client->gauge("masternodes.mn.count", newList.GetAllMNsCount() - newList.GetAllEvoCount());
|
||||
::g_stats_client->gauge("masternodes.mn.enabled", newList.GetValidMNsCount() - newList.GetValidEvoCount());
|
||||
|
||||
if (nHeight == consensusParams.DIP0003EnforcementHeight) {
|
||||
if (!consensusParams.DIP0003EnforcementHash.IsNull() && consensusParams.DIP0003EnforcementHash != pindex->GetBlockHash()) {
|
||||
|
@ -881,7 +881,7 @@ static void PeriodicStats(NodeContext& node)
|
||||
::g_stats_client->gauge("transactions.mempool.memoryUsageBytes", (int64_t) mempool.DynamicMemoryUsage(), 1.0f);
|
||||
::g_stats_client->gauge("transactions.mempool.minFeePerKb", mempool.GetMinFee(args.GetArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE) * 1000000).GetFeePerK(), 1.0f);
|
||||
}
|
||||
::g_stats_client.gauge("transactions.mempool.lockedTransactions", isman.GetInstantSendLockCount(), 1.0f);
|
||||
::g_stats_client->gauge("transactions.mempool.lockedTransactions", isman.GetInstantSendLockCount(), 1.0f);
|
||||
}
|
||||
|
||||
static bool AppInitServers(NodeContext& node)
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include <node/ui_interface.h>
|
||||
#include <scheduler.h>
|
||||
#include <spork.h>
|
||||
#include <statsd_client.h>
|
||||
#include <stats/client.h>
|
||||
#include <txmempool.h>
|
||||
#include <util/thread.h>
|
||||
#include <util/time.h>
|
||||
@ -500,7 +500,7 @@ void CChainLocksHandler::EnforceBestChainLock()
|
||||
|
||||
GetMainSignals().NotifyChainLock(currentBestChainLockBlockIndex, clsig);
|
||||
uiInterface.NotifyChainLock(clsig->getBlockHash().ToString(), clsig->getHeight());
|
||||
statsClient.gauge("chainlocks.blockHeight", clsig->getHeight(), 1.0f);
|
||||
::g_stats_client->gauge("chainlocks.blockHeight", clsig->getHeight(), 1.0f);
|
||||
}
|
||||
|
||||
MessageProcessingResult CChainLocksHandler::HandleNewRecoveredSig(const llmq::CRecoveredSig& recoveredSig)
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include <util/ranges.h>
|
||||
#include <util/thread.h>
|
||||
#include <validation.h>
|
||||
#include <statsd_client.h>
|
||||
#include <stats/client.h>
|
||||
|
||||
#include <cxxtimer.hpp>
|
||||
|
||||
@ -784,7 +784,7 @@ PeerMsgRet CInstantSendManager::ProcessMessageInstantSendLock(const CNode& pfrom
|
||||
// But if we received the islock and don't know when we got the tx, then say 0, to indicate we received the islock first.
|
||||
return 0;
|
||||
}();
|
||||
statsClient.timing("islock_ms", time_diff);
|
||||
::g_stats_client->timing("islock_ms", time_diff);
|
||||
|
||||
LOCK(cs_pendingLocks);
|
||||
pendingInstantSendLocks.emplace(hash, std::make_pair(pfrom.GetId(), islock));
|
||||
|
@ -2690,12 +2690,12 @@ bool CChainState::DisconnectTip(BlockValidationState& state, DisconnectedBlockTr
|
||||
for (const auto& tx : block.vtx) {
|
||||
nSigOps += GetLegacySigOpCount(*tx);
|
||||
}
|
||||
statsClient.timing("DisconnectTip_ms", (nTime2 - nTime1) / 1000, 1.0f);
|
||||
statsClient.gauge("blocks.tip.SizeBytes", ::GetSerializeSize(block, PROTOCOL_VERSION), 1.0f);
|
||||
statsClient.gauge("blocks.tip.Height", m_chain.Height(), 1.0f);
|
||||
statsClient.gauge("blocks.tip.Version", block.nVersion, 1.0f);
|
||||
statsClient.gauge("blocks.tip.NumTransactions", block.vtx.size(), 1.0f);
|
||||
statsClient.gauge("blocks.tip.SigOps", nSigOps, 1.0f);
|
||||
::g_stats_client->timing("DisconnectTip_ms", (nTime2 - nTime1) / 1000, 1.0f);
|
||||
::g_stats_client->gauge("blocks.tip.SizeBytes", ::GetSerializeSize(block, PROTOCOL_VERSION), 1.0f);
|
||||
::g_stats_client->gauge("blocks.tip.Height", m_chain.Height(), 1.0f);
|
||||
::g_stats_client->gauge("blocks.tip.Version", block.nVersion, 1.0f);
|
||||
::g_stats_client->gauge("blocks.tip.NumTransactions", block.vtx.size(), 1.0f);
|
||||
::g_stats_client->gauge("blocks.tip.SigOps", nSigOps, 1.0f);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user