From 419a8af274356f26e72793781409f0326097f0ff Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kwvg@users.noreply.github.com> Date: Thu, 21 Mar 2024 12:20:57 +0000 Subject: [PATCH] fix: revert "drop circular dependencies over deterministicmns in validationinterface" This reverts commit fa6847d2fb91125fa1354c400a60784f9136ebae. --- src/validationinterface.cpp | 3 ++- test/lint/lint-circular-dependencies.sh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/validationinterface.cpp b/src/validationinterface.cpp index 3b18b61f43..cbee7d7cb8 100644 --- a/src/validationinterface.cpp +++ b/src/validationinterface.cpp @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -288,7 +289,7 @@ void CMainSignals::NotifyChainLock(const CBlockIndex* pindex, const std::shared_ } void CMainSignals::NotifyGovernanceVote(const CDeterministicMNList& tip_mn_list, const std::shared_ptr& vote) { - auto event = [vote, &tip_mn_list, this] { + auto event = [vote, tip_mn_list, this] { m_internals->Iterate([&](CValidationInterface& callbacks) { callbacks.NotifyGovernanceVote(tip_mn_list, vote); }); }; ENQUEUE_AND_LOG_EVENT(event, "%s: notify governance vote: %s", __func__, vote->GetHash().ToString()); diff --git a/test/lint/lint-circular-dependencies.sh b/test/lint/lint-circular-dependencies.sh index fe74646eda..31b43193f2 100755 --- a/test/lint/lint-circular-dependencies.sh +++ b/test/lint/lint-circular-dependencies.sh @@ -98,6 +98,7 @@ EXPECTED_CIRCULAR_DEPENDENCIES=( "evo/mnhftx -> validation -> evo/mnhftx" "evo/deterministicmns -> validation -> evo/deterministicmns" "evo/chainhelper -> masternode/payments -> validation -> evo/chainhelper" + "evo/deterministicmns -> validationinterface -> evo/deterministicmns" ) EXIT_CODE=0