mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-12 13:42:10 +02:00
dfe5d6a81dfuzz: apply node context reset pattern to p2p_handshake (frankomosh) Pull request description: Follow-up to #34302. Applies the node context reset pattern fromfabf8d1to `p2p_handshake`. Previous code pattern created local `AddrMan` and `node::Warnings` objects, and passed them to `PeerManager::make`. `connman` was left holding a dangling `reference_wrapper<AddrMan>` across iterations, since the local objects destruct at iteration end while `connman` is global. Like infabf8d1, reset and reinstall `node.addrman` and `node.peerman` on each iteration. This PR also removes `includes` made unused by this or prior refactors. ACKs for top commit: nervana21: tACKdfe5d6a81dmaflcko: review ACKdfe5d6a81d🦏 sedited: ACKdfe5d6a81dTree-SHA512: 141ddec03c6d37f76a3b2d94701d18c851e85ea74e57716abb69ecc955d30371e342c6e267d2669ad853fe2d95fb77dd2fb506e4233ae3a88501d59ee1bbae30