@@ -44,6 +44,12 @@ pub struct TxUpdate<A = ()> {
44
44
/// [`SyncRequest::start_time`](crate::spk_client::SyncRequest::start_time) can be used to
45
45
/// provide the `seen_at` value.
46
46
pub seen_ats : HashSet < ( Txid , u64 ) > ,
47
+
48
+ /// When transactions were discovered to be missing (evicted) from the mempool.
49
+ ///
50
+ /// [`SyncRequest::start_time`](crate::spk_client::SyncRequest::start_time) can be used to
51
+ /// provide the `evicted_at` value.
52
+ pub evicted_ats : HashSet < ( Txid , u64 ) > ,
47
53
}
48
54
49
55
impl < A > Default for TxUpdate < A > {
@@ -53,6 +59,7 @@ impl<A> Default for TxUpdate<A> {
53
59
txouts : Default :: default ( ) ,
54
60
anchors : Default :: default ( ) ,
55
61
seen_ats : Default :: default ( ) ,
62
+ evicted_ats : Default :: default ( ) ,
56
63
}
57
64
}
58
65
}
@@ -72,6 +79,7 @@ impl<A: Ord> TxUpdate<A> {
72
79
. map ( |( a, txid) | ( map ( a) , txid) )
73
80
. collect ( ) ,
74
81
seen_ats : self . seen_ats ,
82
+ evicted_ats : self . evicted_ats ,
75
83
}
76
84
}
77
85
@@ -81,5 +89,6 @@ impl<A: Ord> TxUpdate<A> {
81
89
self . txouts . extend ( other. txouts ) ;
82
90
self . anchors . extend ( other. anchors ) ;
83
91
self . seen_ats . extend ( other. seen_ats ) ;
92
+ self . evicted_ats . extend ( other. evicted_ats ) ;
84
93
}
85
94
}
0 commit comments