Although a law may allow an informer or person prosecuting to have part of a fine or penalty, the whole thereof shall go to the Commonwealth, unless the name of such informer or prosecutor be endorsed on, or written at the foot of, the presentment at the time it is made, or of the indictment before it is presented to the grand jury, or of the information before it is filed, or of the writ issued in the action, or the process on the warrant, or the notice of the motion before service of such writ, process, or notice.
Code 1950, § 19.1-344; 1960, c. 366; 1975, c. 495.