diff --git a/intercept.go b/intercept.go index 7d522d8..81ffea2 100644 --- a/intercept.go +++ b/intercept.go @@ -75,15 +75,9 @@ func intercept(reqPaymentHash []byte, reqOutgoingAmountMsat uint64, reqOutgoingE }, nil } } else { //probing - failureCode := FAILURE_TEMPORARY_CHANNEL_FAILURE - isConnected, _ := client.IsConnected(destination) - if isConnected { - failureCode = FAILURE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS - } - return interceptResult{ action: INTERCEPT_FAIL_HTLC_WITH_CODE, - failureCode: failureCode, + failureCode: FAILURE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS, }, nil } } diff --git a/itest/probing_test.go b/itest/probing_test.go index fb53fc1..2fddbcd 100644 --- a/itest/probing_test.go +++ b/itest/probing_test.go @@ -70,5 +70,5 @@ func testProbing(p *testParams) { _, err = alice.PayViaRoute(outerAmountMsat, fakePaymentHash, outerInvoice.paymentSecret, route) // Expect temporary channel failure if the peer is offline - assert.Contains(p.t, err.Error(), "WIRE_TEMPORARY_CHANNEL_FAILURE") + assert.Contains(p.t, err.Error(), "WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS") }