#[derive(Clone)] for InFlightHtlcs

This is useful for bindings, and generally isn't a bad thing for
users to have access to.
This commit is contained in:
Matt Corallo 2023-01-02 01:07:59 +00:00
parent f0c181e2f2
commit 9414830951

View file

@ -181,6 +181,7 @@ impl<'a, S: Score> Score for ScorerAccountingForInFlightHtlcs<'a, S> {
/// 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