message: LookupBlockIndex -> CACHED_INVALID
diff: @@ -1578,7 +1578,7 @@ bool static ProcessHeadersMessage(CNode *pfrom, CConnman *connman, const std::ve
  CBlockHeader first_invalid_header;
  if (!ProcessNewBlockHeaders(headers, state, chainparams, &pindexLast, &first_invalid_header)) {
  if (state.IsInvalid()) {
  - if (punish_duplicate_invalid && LookupBlockIndex(first_invalid_header.GetHash())) {
  + if (punish_duplicate_invalid && state.GetReason() == ValidationInvalidReason::CACHED_INVALID) {
  // Goal: don't allow outbound peers to use up our outbound
  // connection slots if they are on incompatible chains.
  //
  