MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / DisconnectedPeer

Method DisconnectedPeer

src/test/fuzz/txrequest.cpp:163–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161 }
162
163 void DisconnectedPeer(int peer)
164 {
165 // Apply to naive structure: all announcements for that peer are wiped.
166 for (int txhash = 0; txhash < MAX_TXHASHES; ++txhash) {
167 if (m_announcements[txhash][peer].m_state != State::NOTHING) {
168 m_announcements[txhash][peer].m_state = State::NOTHING;
169 Cleanup(txhash);
170 }
171 }
172
173 // Call TxRequestTracker's implementation.
174 m_tracker.DisconnectedPeer(peer);
175 }
176
177 void ForgetTxHash(int txhash)
178 {

Callers 2

txdownloadman.cppFile · 0.45
FUZZ_TARGETFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected