notifications: notify htlc when peer offline

This commit is contained in:
Jesse de Wit
2023-06-15 15:55:09 +02:00
parent ddc0195b41
commit 09e8bd3cb6
4 changed files with 173 additions and 68 deletions

View File

@@ -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_TEMPORARY_CHANNEL_FAILURE")
assert.Contains(p.t, err.Error(), "WIRE_UNKNOWN_NEXT_PEER")
log.Printf("Starting breez client again")
p.BreezClient().Start()