Skip to content

Commit 44bef04

Browse files
committed
fix!: remove error returned when tx is missing
Rather than returning an error when transaction corresponding to an anchor and last_seen, first_seen, last_evicted timestamps is missing we instead quietly insert the anchor or timestamps in the db. This is in accordance with the sqlite persistence.
1 parent 59d5689 commit 44bef04

File tree

2 files changed

+57
-259
lines changed

2 files changed

+57
-259
lines changed

src/error.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![warn(missing_docs)]
22
//! This module contains the crate's error type.
3-
use bdk_chain::bitcoin;
43
use std::io::Error as IoError;
54

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

0 commit comments

Comments
 (0)