Skip to content

Commit

Permalink
feat(sdk): including grovedb proof bytes when error in proof verifica…
Browse files Browse the repository at this point in the history
…tion (#2332)
  • Loading branch information
QuantumExplorer authored Nov 15, 2024
1 parent b81f895 commit 4c2d05a
Show file tree
Hide file tree
Showing 2 changed files with 237 additions and 60 deletions.
10 changes: 10 additions & 0 deletions packages/rs-drive-proof-verifier/src/error.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use dpp::ProtocolError;
use drive::grovedb::operations::proof::GroveDBProof;

/// Errors
#[derive(Debug, thiserror::Error)]
Expand All @@ -15,6 +16,15 @@ pub enum Error {
#[error("dash drive: {error}")]
DriveError { error: String },

/// GroveDB error, often for issues with proofs
#[error("grovedb: {error}")]
GroveDBError {
proof_bytes: Vec<u8>,
height: u64,
time_ms: u64,
error: String,
},

/// Dash Protocol error
#[error("dash protocol: {error}")]
ProtocolError { error: String },
Expand Down
Loading

0 comments on commit 4c2d05a

Please sign in to comment.