diff --git a/interceptor/intercept_handler.go b/interceptor/intercept_handler.go index f28ed9f..d150b39 100644 --- a/interceptor/intercept_handler.go +++ b/interceptor/intercept_handler.go @@ -53,7 +53,7 @@ func NewInterceptHandler( func (i *Interceptor) Intercept(req common.InterceptRequest) common.InterceptResult { reqPaymentHashStr := hex.EncodeToString(req.PaymentHash) - log.Printf("Intercept: scid: %s, paymentHash: %x, outgoindAmount: %v, outgoingExpiry: %v, incomingExpiry: %v", req.Scid.ToString(), reqPaymentHashStr, req.OutgoingAmountMsat, req.OutgoingExpiry, req.IncomingExpiry) + log.Printf("Intercept: scid: %s, paymentHash: %s, outgoindAmount: %v, outgoingExpiry: %v, incomingExpiry: %v", req.Scid.ToString(), reqPaymentHashStr, req.OutgoingAmountMsat, req.OutgoingExpiry, req.IncomingExpiry) resp, _, _ := i.payHashGroup.Do(reqPaymentHashStr, func() (interface{}, error) { token, params, paymentHash, paymentSecret, destination, incomingAmountMsat, outgoingAmountMsat, channelPoint, tag, err := i.store.PaymentInfo(req.PaymentHash) if err != nil { @@ -150,7 +150,7 @@ func (i *Interceptor) Intercept(req common.InterceptRequest) common.InterceptRes notifyResult := i.notifyAndWait(reqPaymentHashStr, nextHop, isRegistered) if notifyResult != nil { log.Printf("paymentHash: %s, !isConnected and notifyResult != nil", reqPaymentHashStr) - return *notifyResult, nil + // return *notifyResult, nil } } diff --git a/itest/bob_offline_test.go b/itest/bob_offline_test.go index 9e04fda..8b214b7 100644 --- a/itest/bob_offline_test.go +++ b/itest/bob_offline_test.go @@ -57,7 +57,7 @@ func testFailureBobOffline(p *testParams) { log.Printf("Alice paying") route := constructRoute(p.lsp.LightningNode(), p.BreezClient().Node(), channelId, lntest.NewShortChanIDFromString("1x0x0"), outerAmountMsat) _, err := alice.PayViaRoute(outerAmountMsat, outerInvoice.paymentHash, outerInvoice.paymentSecret, route) - assert.Contains(p.t, err.Error(), "WIRE_UNKNOWN_NEXT_PEER") + assert.Contains(p.t, err.Error(), "WIRE_TEMPORARY_CHANNEL_FAILURE") log.Printf("Starting breez client again") p.BreezClient().Start()