mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
Merge bitcoin/bitcoin#26295: Replace global g_cs_orphans lock with local
7082ce3e88scripted-diff: rename and de-globalise g_cs_orphans (Anthony Towns)733d85f79cMove all g_cs_orphans locking to txorphanage (Anthony Towns)a936f41a5dtxorphanage: make m_peer_work_set private (Anthony Towns)3614819864txorphange: move orphan workset to txorphanage (Anthony Towns)6f8e442ba6net_processing: Localise orphan_work_set handling to ProcessOrphanTx (Anthony Towns)0027174b39net_processing: move ProcessOrphanTx docs to declaration (Anthony Towns)9910ed755cnet_processing: Pass a Peer& to ProcessOrphanTx (Anthony Towns)89e2e0da0bnet_processing: move extra transactions to msgproc mutex (Anthony Towns)ff8d44d196Remove unnecessary includes of txorphange.h (Anthony Towns) Pull request description: Moves extra transactions to be under the `m_msgproc_mutex` lock rather than `g_cs_orphans` and refactors orphan handling so that the lock can be internal to the `TxOrphange` class. ACKs for top commit: dergoegge: Code review ACK7082ce3e88glozow: ACK7082ce3e88via code review and some [basic testing](https://github.com/glozow/bitcoin/blob/review-26295/src/test/orphanage_tests.cpp#L150). I think putting txorphanage in charge of handling peer work sets is the right direction. Tree-SHA512: 1ec454c3a69ebd45ff652770d6a55c6b183db71aba4d12639ed70f525f0035e069a81d06e9b65b66e87929c607080a1c5e5dcd2ca91eaa2cf202dc6c02aa6818
This commit is contained in:
@@ -67,7 +67,6 @@
|
||||
#include <torcontrol.h>
|
||||
#include <txdb.h>
|
||||
#include <txmempool.h>
|
||||
#include <txorphanage.h>
|
||||
#include <util/asmap.h>
|
||||
#include <util/check.h>
|
||||
#include <util/moneystr.h>
|
||||
|
||||
Reference in New Issue
Block a user