Class PathFailure

  • Direct Known Subclasses:
    PathFailure.InitialSend, PathFailure.OnPath

    public class PathFailure
    extends Object
    When the payment path failure took place and extra details about it. [`PathFailure::OnPath`] may contain a [`NetworkUpdate`] that needs to be applied to the [`NetworkGraph`]. [`NetworkUpdate`]: crate::routing::gossip::NetworkUpdate [`NetworkGraph`]: crate::routing::gossip::NetworkGraph
    • Method Detail

      • initial_send

        public static PathFailure initial_send​(APIError err)
        Utility method to constructs a new InitialSend-variant PathFailure
      • eq

        public boolean eq​(PathFailure b)
        Checks if two PathFailures contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields.
      • write

        public byte[] write()
        Serialize the PathFailure object into a byte array which can be read by PathFailure_read