2339@@ -2340,7 +2340,7 @@ void PeerManagerImpl::ProcessGetBlockData(CNode& pfrom, Peer& peer, const CInv&
2340 if (!pindex) {
2341 return;
2342 }
2343- if (!BlockRequestAllowed(pindex)) {
2344+ if (!BlockRequestAllowed(*pindex)) {
Would it better if we Assert( in these cases too?
I considered adding an assert, but the if (!pindex) ... condition is on the immediately preceding line, so that’s why I found it superfluous to add an assert as well.
Agree, we’re basically in the if (pindex != nullptr) branch here