Class ScorerAccountingForInFlightHtlcs


  • public class ScorerAccountingForInFlightHtlcs
    extends Object
    [`ScoreLookUp`] implementation that factors in in-flight HTLC liquidity. Useful for custom [`Router`] implementations to wrap their [`ScoreLookUp`] on-the-fly when calling [`find_route`]. [`ScoreLookUp`]: crate::routing::scoring::ScoreLookUp
    • Method Detail

      • as_ScoreLookUp

        public ScoreLookUp as_ScoreLookUp()
        Constructs a new ScoreLookUp which calls the relevant methods on this_arg. This copies the `inner` pointer in this_arg and thus the returned ScoreLookUp must be freed before this_arg is