From 41f1a43236a716d977a5cf3f79ba1c712e5f8951 Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Thu, 26 Sep 2024 02:16:30 +0700 Subject: [PATCH] fix: add missing const for member functions of CRateCheckBuffer --- src/governance/governance.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/governance/governance.h b/src/governance/governance.h index 1417344551..100e303d13 100644 --- a/src/governance/governance.h +++ b/src/governance/governance.h @@ -69,7 +69,7 @@ public: fBufferEmpty = false; } - int64_t GetMinTimestamp() + int64_t GetMinTimestamp() const { int nIndex = nDataStart; int64_t nMin = std::numeric_limits::max(); @@ -85,7 +85,7 @@ public: return nMin; } - int64_t GetMaxTimestamp() + int64_t GetMaxTimestamp() const { int nIndex = nDataStart; int64_t nMax = 0; @@ -112,7 +112,7 @@ public: return RATE_BUFFER_SIZE - nDataStart + nDataEnd; } - double GetRate() + double GetRate() const { int nCount = GetCount(); if (nCount < RATE_BUFFER_SIZE) {