Accepting payment of the whole principal, as such, waives all claim to interest.

(Enacted 1872.)