diff --git a/src/validationinterface.cpp b/src/validationinterface.cpp index ea62eaea0c77cc..2859edd5cf7e67 100644 --- a/src/validationinterface.cpp +++ b/src/validationinterface.cpp @@ -116,13 +116,15 @@ void RegisterValidationInterface(CValidationInterface* pwalletIn) RegisterSharedValidationInterface({pwalletIn, [](CValidationInterface*) {}}); } -void UnregisterValidationInterface(CValidationInterface* pwalletIn) { +void UnregisterValidationInterface(CValidationInterface* pwalletIn) +{ if (g_signals.m_internals) { g_signals.m_internals->m_connMainSignals.erase(pwalletIn); } } -void UnregisterSharedValidationInterface(std::shared_ptr pwalletIn) { +void UnregisterSharedValidationInterface(std::shared_ptr pwalletIn) +{ UnregisterValidationInterface(pwalletIn.get()); } diff --git a/src/validationinterface.h b/src/validationinterface.h index e8427acaf1c949..d7f1adc363711d 100644 --- a/src/validationinterface.h +++ b/src/validationinterface.h @@ -88,7 +88,7 @@ class CValidationInterface { virtual void AcceptedBlockHeader(const CBlockIndex* pindexNew) {} protected: - /** + /** * Notifies listeners when the block chain tip advances. * * When multiple blocks are connected at once, UpdatedBlockTip will be called on the final tip @@ -162,6 +162,7 @@ class CValidationInterface { friend void ::RegisterSharedValidationInterface(std::shared_ptr); friend void ::UnregisterValidationInterface(CValidationInterface*); friend void ::UnregisterAllValidationInterfaces(); + /** Notifies listeners of updated deterministic masternode list */ virtual void NotifyMasternodeListChanged(bool undo, const CDeterministicMNList& oldMNList, const CDeterministicMNListDiff& diff) {} virtual void NotifyChainLock(const CBlockIndex* pindex, const llmq::CChainLockSig& clsig) {} };