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();