Class Scorer


  • public class Scorer
    extends Object
    [`routing::Score`] implementation that provides reasonable default behavior. Used to apply a fixed penalty to each channel, thus avoiding long paths when shorter paths with slightly higher fees are available. See [module-level documentation] for usage. [module-level documentation]: crate::routing::scorer
    • Method Detail

      • of

        public static Scorer of​(long base_penalty_msat)
        Creates a new scorer using `base_penalty_msat` as the channel penalty.
      • with_default

        public static Scorer with_default()
        Creates a "default" Scorer. See struct and individual field documentaiton for details on which values are used.
      • 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