mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-12 13:42:10 +02:00
80eaa6cabfbugfix: give TxDownloadManager its own RNG (Greg Sanders) Pull request description: TxDownloadManagerImpl retains a reference to PeerManagerImpl::m_rng, which is non-thread-safe and guarded by g_msgproc_mutex. BlockConnected runs on the validation background thread while holding only m_tx_download_mutex. Reconsidering an orphan with multiple announcers could therefore use m_rng concurrently with message processing. Regression introduced in #35986 Added a regression test on second commit, can remove it from the PR if deemed superfluous. This is a Project Loupe find. ACKs for top commit: maflcko: review ACK80eaa6cabf🐓 hodlinator: ACK80eaa6cabfsedited: ACK80eaa6cabfTree-SHA512: 2dbc4a9298bfa1375dc364ead4b1ec74c2ebe54fb7c311180fa06fc32240406be2979a2dd6ae0e7a23b099ddcd63f5c76c126d84a1405fc7eacd337eb009dd88