Prior to DNA, paternity would have been determined by blood type, as in given a child's blood type (and possibly the mother's?), a man's blood type could include or exclude him as potentially being the father. But I don't believe that was very advanced in 1840. Actually, it might not have even been available at all because I *think* the major discoveries pertaining to blood types didn't come until at least a few decades later.