mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-04-13 14:39:06 +02:00
In this commit, we fix a bug that would cause attempts to re-use an AMP invoice to fail. Without this commit, we would only attempt to parse the payment addr if no invoice was specified, so a user manually specifying the pubkey of the detonation. The fix is straight forward: always parse the `pay_addr` field as the user may be attempting to re-use an AMP invoice w/o open coding each of the sections.