Class ClosureReason.CounterpartyForceClosed

  • Enclosing class:
    ClosureReason

    public static final class ClosureReason.CounterpartyForceClosed
    extends ClosureReason
    Closure generated from receiving a peer error message. Our counterparty may have broadcasted their latest commitment state, and we have as well.
    • Field Detail

      • peer_msg

        public final UntrustedString peer_msg
        The error which the peer sent us. Be careful about printing the peer_msg, a well-crafted message could exploit a security vulnerability in the terminal emulator or the logging subsystem. To be safe, use `Display` on `UntrustedString` [`UntrustedString`]: crate::util::string::UntrustedString