@@ -124,7 +124,7 @@ use crate::BlockId;
124
124
use crate :: CanonicalIter ;
125
125
use crate :: CanonicalView ;
126
126
use crate :: CanonicalizationParams ;
127
- use crate :: { Anchor , ChainOracle , ChainPosition , Merge } ;
127
+ use crate :: { Anchor , ChainOracle , Merge } ;
128
128
use alloc:: collections:: vec_deque:: VecDeque ;
129
129
use alloc:: sync:: Arc ;
130
130
use alloc:: vec:: Vec ;
@@ -245,27 +245,6 @@ impl Default for TxNodeInternal {
245
245
}
246
246
}
247
247
248
- /// A transaction that is deemed to be part of the canonical history.
249
- #[ derive( Clone , Debug , PartialEq , Eq , PartialOrd , Ord ) ]
250
- pub struct CanonicalTx < ' a , T , A > {
251
- /// How the transaction is observed in the canonical chain (confirmed or unconfirmed).
252
- pub chain_position : ChainPosition < A > ,
253
- /// The transaction node (as part of the graph).
254
- pub tx_node : TxNode < ' a , T , A > ,
255
- }
256
-
257
- impl < ' a , T , A > From < CanonicalTx < ' a , T , A > > for Txid {
258
- fn from ( tx : CanonicalTx < ' a , T , A > ) -> Self {
259
- tx. tx_node . txid
260
- }
261
- }
262
-
263
- impl < ' a , A > From < CanonicalTx < ' a , Arc < Transaction > , A > > for Arc < Transaction > {
264
- fn from ( tx : CanonicalTx < ' a , Arc < Transaction > , A > ) -> Self {
265
- tx. tx_node . tx
266
- }
267
- }
268
-
269
248
/// Errors returned by `TxGraph::calculate_fee`.
270
249
#[ derive( Debug , PartialEq , Eq ) ]
271
250
pub enum CalculateFeeError {
0 commit comments