doc: net_proc: reference past DoS vulnerability in orphan processing

This commit is contained in:
Antoine Poinsot 2024-07-27 19:50:45 +02:00
parent c02d9f6dd5
commit 68ac9542c4

View file

@ -3072,6 +3072,8 @@ void PeerManagerImpl::ProcessPackageResult(const node::PackageToValidate& packag
}
}
// NOTE: the orphan processing used to be uninterruptible and quadratic, which could allow a peer to stall the node for
// hours with specially crafted transactions. See https://bitcoincore.org/en/2024/07/03/disclose-orphan-dos.
bool PeerManagerImpl::ProcessOrphanTx(Peer& peer)
{
AssertLockHeld(g_msgproc_mutex);