Skip to content

Commit

Permalink
Fix spacing/comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Liquid369 committed Nov 14, 2024
1 parent d723ed0 commit 00c6fd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/validationinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<CValidationInterface> pwalletIn) {
void UnregisterSharedValidationInterface(std::shared_ptr<CValidationInterface> pwalletIn)
{
UnregisterValidationInterface(pwalletIn.get());
}

Expand Down
3 changes: 2 additions & 1 deletion src/validationinterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -162,6 +162,7 @@ class CValidationInterface {
friend void ::RegisterSharedValidationInterface(std::shared_ptr<CValidationInterface>);
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) {}
};
Expand Down

0 comments on commit 00c6fd6

Please sign in to comment.