Class ScoreUpdate


  • public class ScoreUpdate
    extends Object
    `ScoreUpdate` is used to update the scorer's internal state after a payment attempt.
    • Method Detail

      • destroy

        public void destroy()
        Destroys the object, freeing associated resources. After this call, any access to this object may result in a SEGFAULT or worse. You should generally NEVER call this method. You should let the garbage collector do this for you when it finalizes objects. However, it may be useful for types which represent locks and should be closed immediately to avoid holding locks until the GC runs.
      • payment_path_failed

        public void payment_path_failed​(Path path,
                                        long short_channel_id)
        Handles updating channel penalties after failing to route through a channel.
      • payment_path_successful

        public void payment_path_successful​(Path path)
        Handles updating channel penalties after successfully routing along a path.
      • probe_failed

        public void probe_failed​(Path path,
                                 long short_channel_id)
        Handles updating channel penalties after a probe over the given path failed.
      • probe_successful

        public void probe_successful​(Path path)
        Handles updating channel penalties after a probe over the given path succeeded.