Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ wallet = ["bdk_wallet"]
[dev-dependencies]
anyhow = "1.0.98"
bdk_testenv = { version = "0.13.0" }
bdk_wallet = {version = "2.0.0", features = ["test-utils"]}
assert_matches = "1.5.0"

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage,coverage_nightly)'] }
5 changes: 5 additions & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#![warn(missing_docs)]
//! This module contains the crate's error type.
use bdk_chain::bitcoin;
use std::io::Error as IoError;

#[derive(Debug, thiserror::Error)]
Expand Down Expand Up @@ -34,4 +35,8 @@ pub enum StoreError {
/// [`BlockHash`]: <https://docs.rs/bitcoin/latest/bitcoin/struct.BlockHash.html>
#[error("BlockHash deserialization error: {0}")]
BlockHashFromSlice(#[from] bdk_chain::bitcoin::hashes::FromSliceError),
/// Error thrown when tx corresponding to txid is not found while persisting
/// anchors, last_seen, last_evicted or first_seen.
#[error("Tx corresponding to txid is missing")]
TxMissing(bitcoin::Txid),
}
Loading
Loading