pub fn validate_replay_capacity(capacity: usize) -> Result<usize, String>
Validate a requested replay-cache capacity.