Interface Score.ScoreInterface

  • Enclosing class:
    Score

    public static interface Score.ScoreInterface
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long channel_penalty_msat​(long short_channel_id, NodeId source, NodeId target)
      Returns the fee in msats willing to be paid to avoid routing through the given channel in the direction from `source` to `target`.
      void payment_path_failed​(RouteHop[] path, long short_channel_id)
      Handles updating channel penalties after failing to route through a channel.
      byte[] write()
      Serialize the object into a byte array
    • Method Detail

      • channel_penalty_msat

        long channel_penalty_msat​(long short_channel_id,
                                  NodeId source,
                                  NodeId target)
        Returns the fee in msats willing to be paid to avoid routing through the given channel in the direction from `source` to `target`.
      • payment_path_failed

        void payment_path_failed​(RouteHop[] path,
                                 long short_channel_id)
        Handles updating channel penalties after failing to route through a channel.
      • write

        byte[] write()
        Serialize the object into a byte array