Skip to content

Commit a71f422

Browse files
committed
fix(fortuna): add log for reveal failure
1 parent cfe8d0f commit a71f422

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

fortuna/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fortuna/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fortuna"
3-
version = "3.2.2"
3+
version = "3.2.3"
44
edition = "2021"
55

66
[dependencies]

fortuna/src/api/revelation.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ pub async fn revelation(
7474
Some(r)
7575
if current_block_number.saturating_sub(state.reveal_delay_blocks) >= r.block_number =>
7676
{
77-
let value = &state
78-
.state
79-
.reveal(sequence)
80-
.map_err(|_| RestError::Unknown)?;
77+
let value = &state.state.reveal(sequence).map_err(|e| {
78+
tracing::error!("Reveal failed {}", e);
79+
RestError::Unknown
80+
})?;
8181
let encoded_value = Blob::new(encoding.unwrap_or(BinaryEncoding::Hex), value.clone());
8282

8383
Ok(Json(GetRandomValueResponse {

0 commit comments

Comments
 (0)