2374@@ -2365,6 +2375,14 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
2375 prevheights.resize(tx.vin.size());
2376 for (size_t j = 0; j < tx.vin.size(); j++) {
2377 prevheights[j] = view.AccessCoins(tx.vin[j].prevout.hash)->nHeight;
2378+ // Which orphan pool entries must we evict?
2379+ map<COutPoint, set<uint256> >::iterator itByOutPoint = mapOrphanTransactionsByOutPoint.find(tx.vin[j].prevout);
2380+ if (itByOutPoint != mapOrphanTransactionsByOutPoint.end()) {
2381+ for (set<uint256>::iterator mi = itByOutPoint->second.begin(); mi != itByOutPoint->second.end(); ++mi) {
2382+ const uint256& orphanHash = *mi;
can you fix the whitespace here