@@ -217,9 +217,9 @@ pub struct TxNode<'a, T, A> {
217
217
/// The blocks that the transaction is "anchored" in.
218
218
pub anchors : & ' a BTreeSet < A > ,
219
219
/// The first-seen unix timestamp of the transaction as unconfirmed.
220
- pub first_seen_unconfirmed : Option < u64 > ,
220
+ pub first_seen : Option < u64 > ,
221
221
/// The last-seen unix timestamp of the transaction as unconfirmed.
222
- pub last_seen_unconfirmed : Option < u64 > ,
222
+ pub last_seen : Option < u64 > ,
223
223
}
224
224
225
225
impl < T , A > Deref for TxNode < ' _ , T , A > {
@@ -341,8 +341,8 @@ impl<A> TxGraph<A> {
341
341
txid,
342
342
tx : tx. clone ( ) ,
343
343
anchors : self . anchors . get ( & txid) . unwrap_or ( & self . empty_anchors ) ,
344
- first_seen_unconfirmed : self . first_seen . get ( & txid) . copied ( ) ,
345
- last_seen_unconfirmed : self . last_seen . get ( & txid) . copied ( ) ,
344
+ first_seen : self . first_seen . get ( & txid) . copied ( ) ,
345
+ last_seen : self . last_seen . get ( & txid) . copied ( ) ,
346
346
} ) ,
347
347
TxNodeInternal :: Partial ( _) => None ,
348
348
} )
@@ -353,7 +353,7 @@ impl<A> TxGraph<A> {
353
353
& self ,
354
354
) -> impl Iterator < Item = TxNode < ' _ , Arc < Transaction > , A > > {
355
355
self . full_txs ( ) . filter_map ( |tx| {
356
- if tx. anchors . is_empty ( ) && tx. last_seen_unconfirmed . is_none ( ) {
356
+ if tx. anchors . is_empty ( ) && tx. last_seen . is_none ( ) {
357
357
Some ( tx)
358
358
} else {
359
359
None
@@ -377,8 +377,8 @@ impl<A> TxGraph<A> {
377
377
txid,
378
378
tx : tx. clone ( ) ,
379
379
anchors : self . anchors . get ( & txid) . unwrap_or ( & self . empty_anchors ) ,
380
- first_seen_unconfirmed : self . first_seen . get ( & txid) . copied ( ) ,
381
- last_seen_unconfirmed : self . last_seen . get ( & txid) . copied ( ) ,
380
+ first_seen : self . first_seen . get ( & txid) . copied ( ) ,
381
+ last_seen : self . last_seen . get ( & txid) . copied ( ) ,
382
382
} ) ,
383
383
_ => None ,
384
384
}
@@ -1023,13 +1023,13 @@ impl<A: Anchor> TxGraph<A> {
1023
1023
transitively : None ,
1024
1024
} ,
1025
1025
None => ChainPosition :: Unconfirmed {
1026
- first_seen : tx_node. first_seen_unconfirmed ,
1027
- last_seen : tx_node. last_seen_unconfirmed ,
1026
+ first_seen : tx_node. first_seen ,
1027
+ last_seen : tx_node. last_seen ,
1028
1028
} ,
1029
1029
} ,
1030
1030
None => ChainPosition :: Unconfirmed {
1031
- first_seen : tx_node. first_seen_unconfirmed ,
1032
- last_seen : tx_node. last_seen_unconfirmed ,
1031
+ first_seen : tx_node. first_seen ,
1032
+ last_seen : tx_node. last_seen ,
1033
1033
} ,
1034
1034
} ,
1035
1035
CanonicalReason :: Anchor { anchor, descendant } => match descendant {
@@ -1050,11 +1050,11 @@ impl<A: Anchor> TxGraph<A> {
1050
1050
} ,
1051
1051
CanonicalReason :: ObservedIn { observed_in, .. } => match observed_in {
1052
1052
ObservedIn :: Mempool ( last_seen) => ChainPosition :: Unconfirmed {
1053
- first_seen : tx_node. first_seen_unconfirmed ,
1053
+ first_seen : tx_node. first_seen ,
1054
1054
last_seen : Some ( last_seen) ,
1055
1055
} ,
1056
1056
ObservedIn :: Block ( _) => ChainPosition :: Unconfirmed {
1057
- first_seen : tx_node. first_seen_unconfirmed ,
1057
+ first_seen : tx_node. first_seen ,
1058
1058
last_seen : None ,
1059
1059
} ,
1060
1060
} ,
0 commit comments