@@ -14,7 +14,7 @@ type NotCanonicalSet = HashSet<Txid>;
14
14
/// Modifies the canonicalization algorithm.
15
15
#[ derive( Debug , Default , Clone ) ]
16
16
pub struct CanonicalizationParams {
17
- /// Transactions that will supercede all other transactions.
17
+ /// Transactions that will supersede all other transactions.
18
18
///
19
19
/// In case of conflicting transactions within `assume_canonical`, transactions that appear
20
20
/// later in the list (have higher index) have precedence.
@@ -108,7 +108,7 @@ impl<'g, A: Anchor, C: ChainOracle> CanonicalIter<'g, A, C> {
108
108
. iter ( )
109
109
. last ( )
110
110
. expect (
111
- "tx taken from `unprocessed_txs_with_anchors` so it must atleast have an anchor" ,
111
+ "tx taken from `unprocessed_txs_with_anchors` so it must at least have an anchor" ,
112
112
)
113
113
. confirmation_height_upper_bound ( ) ,
114
114
) ) ;
@@ -266,7 +266,7 @@ pub enum ObservedIn {
266
266
/// The reason why a transaction is canonical.
267
267
#[ derive( Debug , Clone , PartialEq , Eq ) ]
268
268
pub enum CanonicalReason < A > {
269
- /// This transaction is explicitly assumed to be canonical by the caller, superceding all other
269
+ /// This transaction is explicitly assumed to be canonical by the caller, superseding all other
270
270
/// canonicalization rules.
271
271
Assumed {
272
272
/// Whether it is a descendant that is assumed to be canonical.
@@ -290,7 +290,7 @@ pub enum CanonicalReason<A> {
290
290
}
291
291
292
292
impl < A : Clone > CanonicalReason < A > {
293
- /// Constructs a [`CanonicalReason`] for a transaction that is assumed to supercede all other
293
+ /// Constructs a [`CanonicalReason`] for a transaction that is assumed to supersede all other
294
294
/// transactions.
295
295
pub fn assumed ( ) -> Self {
296
296
Self :: Assumed { descendant : None }
@@ -312,7 +312,7 @@ impl<A: Clone> CanonicalReason<A> {
312
312
}
313
313
}
314
314
315
- /// Contruct a new [`CanonicalReason`] from the original which is transitive to `descendant`.
315
+ /// Construct a new [`CanonicalReason`] from the original which is transitive to `descendant`.
316
316
///
317
317
/// This signals that either the [`ObservedIn`] or [`Anchor`] value belongs to the transaction's
318
318
/// descendant, but is transitively relevant.
0 commit comments