Class ScorerAccountingForInFlightHtlcs


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

      • write

        public byte[] write()
        Serialize the ScorerAccountingForInFlightHtlcs object into a byte array which can be read by ScorerAccountingForInFlightHtlcs_read
      • as_Score

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