We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TxGraph::get_last_evicted
1 parent e5f25a8 commit b555acbCopy full SHA for b555acb
crates/chain/src/tx_graph.rs
@@ -410,6 +410,13 @@ impl<A> TxGraph<A> {
410
})
411
}
412
413
+ /// Get the `last_evicted` timestamp of the given `txid`.
414
+ ///
415
+ /// Ideally, this would be included in [`TxNode`], but that would be a breaking change.
416
+ pub fn get_last_evicted(&self, txid: Txid) -> Option<u64> {
417
+ self.last_evicted.get(&txid).copied()
418
+ }
419
+
420
/// Calculates the fee of a given transaction. Returns [`Amount::ZERO`] if `tx` is a coinbase
421
/// transaction. Returns `OK(_)` if we have all the [`TxOut`]s being spent by `tx` in the
422
/// graph (either as the full transactions or individual txouts).
0 commit comments