Skip to content

Commit

Permalink
[bdk_chain_redesign] Improve BlockAnchor docs
Browse files Browse the repository at this point in the history
  • Loading branch information
evanlinjin committed Apr 7, 2023
1 parent 24cd8c5 commit bff80ec
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/chain/src/tx_data_traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@ impl ForEachTxOut for Transaction {
}
}

/// Trait that "anchors" blockchain data in a specific block of height and hash.
/// Trait that "anchors" blockchain data to a specific block of height and hash.
///
/// This trait is typically associated with blockchain data such as transactions.
/// I.e. If transaction A is anchored in block B, then if block B is in the best chain, we can
/// assume that transaction A is also confirmed in the best chain. This does not necessarily mean
/// that transaction A is confirmed in block B. It could also mean transaction A is confirmed in a
/// parent block of B.
pub trait BlockAnchor:
core::fmt::Debug + Clone + Eq + PartialOrd + Ord + core::hash::Hash + Send + Sync + 'static
{
Expand Down

0 comments on commit bff80ec

Please sign in to comment.