detonation / knock issue on 340

Please don't use something flammable to diagnose a vacuum leak. You're literally spraying gas on a fire. Think about it. Use water in a squirt bottle. MUCH safer.

When you get the vacuum leaks fixed, run a compression test on it and post those numbers. The vacuum leak repair may fix it. Running lean is a BIG issue that causes detonation.