Skip to content

Commit

Permalink
fix(fortuna): add log for reveal failure
Browse files Browse the repository at this point in the history
  • Loading branch information
m30m committed Feb 21, 2024
1 parent 6bf6d3e commit d1c7a36
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion fortuna/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion fortuna/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fortuna"
version = "3.2.2"
version = "3.2.3"
edition = "2021"

[dependencies]
Expand Down
8 changes: 4 additions & 4 deletions fortuna/src/api/revelation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d1c7a36

Please sign in to comment.