From 5031f294412f932c3d7b4766b45c52befac80af3 Mon Sep 17 00:00:00 2001 From: Konstantin Akimov Date: Sun, 6 Oct 2024 20:59:58 +0700 Subject: [PATCH] refactor: add couple missing `const` for CGovernanceManager --- src/governance/classes.cpp | 2 +- src/governance/governance.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/governance/classes.cpp b/src/governance/classes.cpp index 4b12212940..70fac9b93c 100644 --- a/src/governance/classes.cpp +++ b/src/governance/classes.cpp @@ -202,7 +202,7 @@ void CGovernanceManager::CleanAndRemoveTriggers() * - Return the triggers in a list */ -std::vector CGovernanceManager::GetActiveTriggers() +std::vector CGovernanceManager::GetActiveTriggers() const { AssertLockHeld(cs); std::vector vecResults; diff --git a/src/governance/governance.h b/src/governance/governance.h index b6e64b979b..bb3eb46e46 100644 --- a/src/governance/governance.h +++ b/src/governance/governance.h @@ -347,7 +347,7 @@ public: * - Track governance objects which are triggers * - After triggers are activated and executed, they can be removed */ - std::vector> GetActiveTriggers(); + std::vector> GetActiveTriggers() const; bool AddNewTrigger(uint256 nHash); void CleanAndRemoveTriggers();