Eric, I’m implementing SPV. I think I found the code points where blocks are processed, so that in SPV mode they can be disabled. Now for completeness I should also find where transactions and compact blocks are received so I can disable their processing too. NONE of those should be stored to disk in SPV mode, that happening would be illegal, so I should carefully identify each code path.
My guess is that both transactions and compact blocks are handled in proxy.cpp.
If you have any clarifications about how to do this right & which are the right code locations, let me know!