Skip to content

Commit 0027174

Browse files
committed
net_processing: move ProcessOrphanTx docs to declaration
1 parent 9910ed7 commit 0027174

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/net_processing.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,14 @@ class PeerManagerImpl final : public PeerManager
589589
*/
590590
bool MaybeDiscourageAndDisconnect(CNode& pnode, Peer& peer);
591591

592+
/**
593+
* Reconsider orphan transactions after a parent has been accepted to the mempool.
594+
*
595+
* @peer[in] peer The peer whose orphan transactions we will reconsider. Generally only one
596+
* orphan will be reconsidered on each call of this function. This set
597+
* may be added to if accepting an orphan causes its children to be
598+
* reconsidered.
599+
*/
592600
void ProcessOrphanTx(Peer& peer) EXCLUSIVE_LOCKS_REQUIRED(cs_main, g_cs_orphans)
593601
EXCLUSIVE_LOCKS_REQUIRED(!m_peer_mutex, g_msgproc_mutex);
594602
/** Process a single headers message from a peer.
@@ -2875,14 +2883,6 @@ void PeerManagerImpl::ProcessHeadersMessage(CNode& pfrom, Peer& peer,
28752883
return;
28762884
}
28772885

2878-
/**
2879-
* Reconsider orphan transactions after a parent has been accepted to the mempool.
2880-
*
2881-
* @peer[in] peer The peer whose orphan transactions we will reconsider. Generally only one
2882-
* orphan will be reconsidered on each call of this function. This set
2883-
* may be added to if accepting an orphan causes its children to be
2884-
* reconsidered.
2885-
*/
28862886
void PeerManagerImpl::ProcessOrphanTx(Peer& peer)
28872887
{
28882888
AssertLockHeld(g_msgproc_mutex);

0 commit comments

Comments
 (0)