From a6d22635692a2bbcbc49e19b79f0e9e58e61ddbb Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Mon, 8 Oct 2018 15:46:13 +0200 Subject: [PATCH] htlcswitch: add PermanentFailure to LinkFailureError --- htlcswitch/linkfailure.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htlcswitch/linkfailure.go b/htlcswitch/linkfailure.go index 840a4d8d..32aa83ad 100644 --- a/htlcswitch/linkfailure.go +++ b/htlcswitch/linkfailure.go @@ -57,6 +57,10 @@ type LinkFailureError struct { // because of this error. ForceClose bool + // PermanentFailure indicates whether this failure is permanent, and + // the channel should not be attempted loaded again. + PermanentFailure bool + // SendData is a byte slice that will be sent to the peer. If nil a // generic error will be sent. SendData []byte