Having knock and having an engine knocking are two different things. If they just replaced pistons in the stock block I would move on. For the money they said they spent it better be a brand new factory shortblock. Anything aftermarket greatly kills the longevity of the engine and isn't want you want in a vehicle you want to drive daily.
If it was detonation and they spent 6k resolving it either they blew a piston, valve or some other fairly serious failure. You don't just replace pistons. This isn't a weed wacker.
Before you consider this you need to have an itemized list of the work done, and the shop who did the work. If there is anything listed besides a factory shortblock replacement, head work, and gaskets and such you could be in over your head quickly. Considering the blow off valve I would say the owner didn't do much research about what he owned.
Sent from my SAMSUNG-SM-G935A using Tapatalk