Support async results in `TestChainSource`, count `get_utxo` calls
[rust-lightning] / lightning / src / routing / utxo.rs
index da9c65c3b12a605c385fd566fe4cf0a505df4b35..5a129f88da44a8c63515ab820574582db1be94e8 100644 (file)
@@ -42,6 +42,7 @@ pub enum UtxoLookupError {
 /// The result of a [`UtxoLookup::get_utxo`] call. A call may resolve either synchronously,
 /// returning the `Sync` variant, or asynchronously, returning an [`UtxoFuture`] in the `Async`
 /// variant.
+#[derive(Clone)]
 pub enum UtxoResult {
        /// A result which was resolved synchronously. It either includes a [`TxOut`] for the output
        /// requested or a [`UtxoLookupError`].