lightning-terminal
lightning-terminal copied to clipboard
invoice disappear after state: SETTLED
Yestorday I create a invoice with AMP = true in Zeus for receive a payment and after received it on the wallet show the settled date was Jan 01 1970 01:00:00, for that reason I went lncli and lookupinvoice hash with the fallowing output
lncli lookupinvoice 194ff82ced2409d3b94721509ce9c286afbab49c3249d8d102e2905d460a7df3
{
"memo": "",
"r_preimage": null,
"r_hash": "194ff82ced2409d3b94721509ce9c286afbab49c3249d8d102e2905d460a7df3",
"value": "978553",
"value_msat": "978553000",
"settled": true,
"creation_date": "1691686291",
"settle_date": "0",
"payment_request": "lnbc9785530n1pjd29vnpp5r98lst8dysya8w28y9gfe6wzs6hm4dyuxfya35gzu2g963s20hesdqqcqzpgxqrrsssp5xl2h32akktaqur8k96w5v3kxfgm6c0r0un6e9y6h4drfelexafmq9q8pqqqssqlmtc7tphs5z7mvj9qtr00tmha6hv52jk35fcte975txvfx7p8vu922za3pmq2evdt6cd4an9826zd79qt2pzupzygz6mmxddyu44awqpc342mh",
"description_hash": null,
"expiry": "3600",
"fallback_addr": "",
"cltv_expiry": "40",
"route_hints": [
],
"private": false,
"add_index": "123411",
"settle_index": "0",
"amt_paid": "978553000",
"amt_paid_sat": "978553",
"amt_paid_msat": "978553000",
"state": "SETTLED",
"htlcs": [
{
"chan_id": "878104070856966145",
"htlc_index": "67",
"amt_msat": "978553000",
"accept_height": 802535,
"accept_time": "1691686523",
"resolve_time": "1691686523",
"expiry_height": 802578,
"state": "SETTLED",
"custom_records": {
},
"mpp_total_amt_msat": "978553000",
"amp": {
"root_share": "bf14887af5fd061057c1fff220d4d26032ddf0128a5696aa4ad5427facf0b5d5",
"set_id": "3964532d3ce142385333a6278396bebcfc110ca110643584ddcde076ac062197",
"child_index": 2786476876,
"hash": "a3f1631f2d160b2c15898bf5baa0fe553a90bf749f6f54ccaa2e555f08b05960",
"preimage": "9d6c2f206cd75be1cf0dae71d9c5e479bb2a3b9a58422e1fba926a79acb79d35"
}
}
],
"features": {
"9": {
"name": "tlv-onion",
"is_required": false,
"is_known": true
},
"14": {
"name": "payment-addr",
"is_required": true,
"is_known": true
},
"30": {
"name": "amp",
"is_required": true,
"is_known": true
}
},
"is_keysend": false,
"payment_addr": "37d578abb6b2fa0e0cf62e9d4646c64a37ac3c6fe4f5929357ab469cff26ea76",
"is_amp": true,
"amp_invoice_state": {
"3964532d3ce142385333a6278396bebcfc110ca110643584ddcde076ac062197": {
"state": "SETTLED",
"settle_index": "300",
"settle_time": "1691686523",
"amt_paid_msat": "978553000"
}
}
}
and around 1 hour latter the invoice was disappear / delete from the wallet and from the node,
lncli lookupinvoice 194ff82ced2409d3b94721509ce9c286afbab49c3249d8d102e2905d460a7df3
[lncli] rpc error: code = NotFound desc = unable to locate invoice
my setup is LND 0.16.4-beta running in Umbrel Wallet where I receive found created with Lightning Terminal version 0.10.5-alpha wallet type custodial Invoice created in Zeus v0.7.7
lnd.conf
[Application Options]
listen=0.0.0.0:9735
rpclisten=0.0.0.0:10009
restlisten=0.0.0.0:8080
maxpendingchannels=3
#minchansize=10000
minchansize=1000000
accept-keysend=true
tlsextraip=10.21.21.9
tlsextradomain=umbrel.local
tlsautorefresh=1
tlsdisableautofill=1
feeurl=
allow-circular-route=1
#alias=YourFunnyAliasNode
#color=#0f3456
# Mark unpayable, unpaid invoices as deleted
gc-canceled-invoices-on-startup=1
gc-canceled-invoices-on-the-fly=1
# Avoid historical graph data sync
ignore-historical-gossip-filters=1
# Avoid slow startup time
sync-freelist=1
# Avoid high startup overhead
stagger-initial-reconnect=1
# Avoid auto force close channels 2022-04-22
payments-expiration-grace-period=30m
https://github.com/lightningnetwork/lnd/discussions/7884#discussioncomment-6700613
My understanding of this issue is that there may be some flows that we need to update with regard to custodial accounts + AMP, will track this issue based on that understanding. Thanks for filing an issue!