diff --git a/fortuna/src/api/revelation.rs b/fortuna/src/api/revelation.rs index 3df5575b5..739f0ef51 100644 --- a/fortuna/src/api/revelation.rs +++ b/fortuna/src/api/revelation.rs @@ -69,7 +69,9 @@ pub async fn revelation( .map_err(|_| RestError::TemporarilyUnavailable)?; match maybe_request { - Some(r) if current_block_number - state.confirmation_blocks >= r.block_number => { + Some(r) + if current_block_number.saturating_sub(state.confirmation_blocks) >= r.block_number => + { let value = &state .state .reveal(sequence)