diff --git a/fortuna/Cargo.lock b/fortuna/Cargo.lock index ed1cc2c6d..e61144de4 100644 --- a/fortuna/Cargo.lock +++ b/fortuna/Cargo.lock @@ -1486,7 +1486,7 @@ dependencies = [ [[package]] name = "fortuna" -version = "3.2.1" +version = "3.2.3" dependencies = [ "anyhow", "axum", diff --git a/fortuna/Cargo.toml b/fortuna/Cargo.toml index a8403b71f..fe0115878 100644 --- a/fortuna/Cargo.toml +++ b/fortuna/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fortuna" -version = "3.2.2" +version = "3.2.3" edition = "2021" [dependencies] diff --git a/fortuna/src/api/revelation.rs b/fortuna/src/api/revelation.rs index af34946be..ee3e371da 100644 --- a/fortuna/src/api/revelation.rs +++ b/fortuna/src/api/revelation.rs @@ -74,10 +74,10 @@ pub async fn revelation( Some(r) if current_block_number.saturating_sub(state.reveal_delay_blocks) >= r.block_number => { - let value = &state - .state - .reveal(sequence) - .map_err(|_| RestError::Unknown)?; + let value = &state.state.reveal(sequence).map_err(|e| { + tracing::error!("Reveal failed {}", e); + RestError::Unknown + })?; let encoded_value = Blob::new(encoding.unwrap_or(BinaryEncoding::Hex), value.clone()); Ok(Json(GetRandomValueResponse {