Note that abandon_payment does not persist the state update in docs 2022-12-abandon-crash-reset
authorMatt Corallo <git@bluematt.me>
Thu, 8 Dec 2022 00:33:15 +0000 (00:33 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 12 Dec 2022 19:59:19 +0000 (19:59 +0000)
commit1969b48b7af7515bd55c466e0d7153f877af1acd
treea413da24334dcdab21bc5baad19749a17887a118
parentd9d4611e65c64001d5ac3b46a1c0288965ee4378
Note that abandon_payment does not persist the state update in docs

If a user calls `abandon_payment`, then restarts without freshly
persisting the `ChannelManager`, the payment will still be pending
on restart. This was unclear from the docs (and the docs seemed to
imply otherwise). Because this doesn't materially impact the
usability of `abandon_payment` (users shouldn't be called
`retry_payment` on an abandoned one anyway), we simply document it.

Fixes #1804.
lightning/src/ln/channelmanager.rs
pending_changelog/matt-abandon-restart.txt [new file with mode: 0644]