detonation / knock issue on 340

If the carburetor sat for 19 years and was used it could do with a disassembly and good cleaning. Did you replace he fuel filter.

What the part number on the carb?
yes on the fuel filter and the fuel has been clear. carb is 4776-4