From fa526d8fb6ab8f2678a30d4536aa9c45218f5269 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Tue, 2 Nov 2021 11:04:27 +0100 Subject: [PATCH] Add dev doc to CCoinsStats::m_hash_type and make it const --- src/node/coinstats.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/node/coinstats.h b/src/node/coinstats.h index 9e9503ff5d2..1d95417d4fd 100644 --- a/src/node/coinstats.h +++ b/src/node/coinstats.h @@ -24,9 +24,10 @@ enum class CoinStatsHashType { NONE, }; -struct CCoinsStats -{ - CoinStatsHashType m_hash_type; +struct CCoinsStats { + //! Which hash type to use + const CoinStatsHashType m_hash_type; + int nHeight{0}; uint256 hashBlock{}; uint64_t nTransactions{0};