Skip to content

Commit a20e1a0

Browse files
committed
refactor: drop unused arguments from CDeterministicMNManager::ProcessBlock
1 parent c873e55 commit a20e1a0

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/evo/deterministicmns.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,8 +590,7 @@ void CDeterministicMNList::RemoveMN(const uint256& proTxHash)
590590
}
591591

592592
bool CDeterministicMNManager::ProcessBlock(const CBlock& block, gsl::not_null<const CBlockIndex*> pindex,
593-
BlockValidationState& state, const CCoinsViewCache& view,
594-
llmq::CQuorumSnapshotManager& qsnapman, const CDeterministicMNList& newList,
593+
BlockValidationState& state, const CDeterministicMNList& newList,
595594
std::optional<MNListUpdates>& updatesRet)
596595
{
597596
AssertLockHeld(::cs_main);

src/evo/deterministicmns.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,6 @@ class CDeterministicMNManager
563563
~CDeterministicMNManager() = default;
564564

565565
bool ProcessBlock(const CBlock& block, gsl::not_null<const CBlockIndex*> pindex, BlockValidationState& state,
566-
const CCoinsViewCache& view, llmq::CQuorumSnapshotManager& qsnapman,
567566
const CDeterministicMNList& newList, std::optional<MNListUpdates>& updatesRet)
568567
EXCLUSIVE_LOCKS_REQUIRED(!cs, ::cs_main);
569568
bool UndoBlock(gsl::not_null<const CBlockIndex*> pindex, std::optional<MNListUpdates>& updatesRet) EXCLUSIVE_LOCKS_REQUIRED(!cs);

src/evo/specialtxman.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ bool CSpecialTxProcessor::ProcessSpecialTxsInBlock(const CBlock& block, const CB
258258
}
259259
mn_list.SetBlockHash(pindex->GetBlockHash());
260260

261-
if (!fJustCheck && !m_dmnman.ProcessBlock(block, pindex, state, view, m_qsnapman, mn_list, updatesRet)) {
261+
if (!fJustCheck && !m_dmnman.ProcessBlock(block, pindex, state, mn_list, updatesRet)) {
262262
// pass the state returned by the function above
263263
return false;
264264
}

0 commit comments

Comments
 (0)