| 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 | { |
no outgoing calls
no test coverage detected