Skip to content

Commit 419a8af

Browse files
committed
fix: revert "drop circular dependencies over deterministicmns in validationinterface"
This reverts commit fa6847d.
1 parent a7e6111 commit 419a8af

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/validationinterface.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <primitives/block.h>
1313
#include <primitives/transaction.h>
1414
#include <scheduler.h>
15+
#include <evo/deterministicmns.h>
1516
#include <governance/vote.h>
1617
#include <llmq/clsig.h>
1718
#include <llmq/signing.h>
@@ -288,7 +289,7 @@ void CMainSignals::NotifyChainLock(const CBlockIndex* pindex, const std::shared_
288289
}
289290

290291
void CMainSignals::NotifyGovernanceVote(const CDeterministicMNList& tip_mn_list, const std::shared_ptr<const CGovernanceVote>& vote) {
291-
auto event = [vote, &tip_mn_list, this] {
292+
auto event = [vote, tip_mn_list, this] {
292293
m_internals->Iterate([&](CValidationInterface& callbacks) { callbacks.NotifyGovernanceVote(tip_mn_list, vote); });
293294
};
294295
ENQUEUE_AND_LOG_EVENT(event, "%s: notify governance vote: %s", __func__, vote->GetHash().ToString());

test/lint/lint-circular-dependencies.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ EXPECTED_CIRCULAR_DEPENDENCIES=(
9898
"evo/mnhftx -> validation -> evo/mnhftx"
9999
"evo/deterministicmns -> validation -> evo/deterministicmns"
100100
"evo/chainhelper -> masternode/payments -> validation -> evo/chainhelper"
101+
"evo/deterministicmns -> validationinterface -> evo/deterministicmns"
101102
)
102103

103104
EXIT_CODE=0

0 commit comments

Comments
 (0)