“D” code 340 in 69’ Cuda?

May be a service replacement engine.
Replaced under warrant by a dealer?
Just spit balling
That would be my guess also. Probably got a short block and put your heads on it, look for a hole near one of the freeze plugs that a parts number tag would have been attached to...