This is to track the regression introduced in master, which needs fixing for 0.14. See #9240, #9371, etc.
continue;
            
            
            if (nDepth == 0 && !pcoin->InMempool())
                continue;
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            
            if (nDepth == 0 && fOnlyConfirmed && pcoin->mapValue.count("replaces_txid")) {
                continue;
            }