refactor: add couple missing const for CGovernanceManager

This commit is contained in:
Konstantin Akimov 2024-10-06 20:59:58 +07:00
parent b240d08e09
commit 5031f29441
No known key found for this signature in database
GPG Key ID: 2176C4A5D01EA524
2 changed files with 2 additions and 2 deletions

View File

@ -202,7 +202,7 @@ void CGovernanceManager::CleanAndRemoveTriggers()
* - Return the triggers in a list
*/
std::vector<CSuperblock_sptr> CGovernanceManager::GetActiveTriggers()
std::vector<CSuperblock_sptr> CGovernanceManager::GetActiveTriggers() const
{
AssertLockHeld(cs);
std::vector<CSuperblock_sptr> vecResults;

View File

@ -347,7 +347,7 @@ public:
* - Track governance objects which are triggers
* - After triggers are activated and executed, they can be removed
*/
std::vector<std::shared_ptr<CSuperblock>> GetActiveTriggers();
std::vector<std::shared_ptr<CSuperblock>> GetActiveTriggers() const;
bool AddNewTrigger(uint256 nHash);
void CleanAndRemoveTriggers();