diff --git a/breacharbiter.go b/breacharbiter.go index 0093fb41..1771b81f 100644 --- a/breacharbiter.go +++ b/breacharbiter.go @@ -5,7 +5,6 @@ import ( "encoding/binary" "errors" "io" - "strings" "sync" "sync/atomic" @@ -580,7 +579,7 @@ secondLevelCheck: if err != nil { brarLog.Errorf("unable to broadcast "+ "justice tx: %v", err) - if strings.Contains(err.Error(), "already been spent") { + if err == lnwallet.ErrDoubleSpend { brarLog.Infof("Attempting to transfer HTLC revocations " + "to the second level") finalTx = nil