From 582e6f50949ab50354eef0688aa4737cb816253e Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 2 Jan 2023 01:07:59 +0000 Subject: [PATCH] `#[derive(Clone)]` for `InFlightHtlcs` This is useful for bindings, and generally isn't a bad thing for users to have access to. --- lightning/src/routing/router.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lightning/src/routing/router.rs b/lightning/src/routing/router.rs index 33acb670e..881d5857e 100644 --- a/lightning/src/routing/router.rs +++ b/lightning/src/routing/router.rs @@ -181,6 +181,7 @@ impl Score for ScorerAccountingForInFlightHtlcs { /// A data structure for tracking in-flight HTLCs. May be used during pathfinding to account for /// in-use channel liquidity. +#[derive(Clone)] pub struct InFlightHtlcs( // A map with liquidity value (in msat) keyed by a short channel id and the direction the HTLC // is traveling in. The direction boolean is determined by checking if the HTLC source's public -- 2.39.5