@@ -342,30 +342,31 @@ impl<'g, A: Anchor> CanonicalizationTask<'g, A> {
342342 for txid in undo_not_canonical {
343343 self . not_canonical . remove ( & txid) ;
344344 }
345- } else {
346- // Add to canonical order
347- for ( txid, tx, reason) in & staged_canonical {
348- self . canonical_order . push ( * txid) ;
349-
350- // If this was marked transitively, check if it has anchors to verify
351- let is_transitive = matches ! (
352- reason,
353- CanonicalReason :: Anchor {
354- descendant: Some ( _) ,
355- ..
356- } | CanonicalReason :: Assumed {
357- descendant: Some ( _) ,
358- ..
359- }
360- ) ;
361-
362- if is_transitive {
363- if let Some ( anchors) = self . tx_graph . all_anchors ( ) . get ( txid) {
364- // only check anchors we haven't already confirmed
365- if !self . confirmed_anchors . contains_key ( txid) {
366- self . unprocessed_anchored_txs
367- . push_back ( ( * txid, tx. clone ( ) , anchors) ) ;
368- }
345+ return ;
346+ }
347+
348+ // Add to canonical order
349+ for ( txid, tx, reason) in & staged_canonical {
350+ self . canonical_order . push ( * txid) ;
351+
352+ // If this was marked transitively, check if it has anchors to verify
353+ let is_transitive = matches ! (
354+ reason,
355+ CanonicalReason :: Anchor {
356+ descendant: Some ( _) ,
357+ ..
358+ } | CanonicalReason :: Assumed {
359+ descendant: Some ( _) ,
360+ ..
361+ }
362+ ) ;
363+
364+ if is_transitive {
365+ if let Some ( anchors) = self . tx_graph . all_anchors ( ) . get ( txid) {
366+ // only check anchors we haven't already confirmed
367+ if !self . confirmed_anchors . contains_key ( txid) {
368+ self . unprocessed_anchored_txs
369+ . push_back ( ( * txid, tx. clone ( ) , anchors) ) ;
369370 }
370371 }
371372 }
0 commit comments