diff --git a/docs/release-notes/release-notes-0.14.0.md b/docs/release-notes/release-notes-0.14.0.md index caeb8d38b..53c988b56 100644 --- a/docs/release-notes/release-notes-0.14.0.md +++ b/docs/release-notes/release-notes-0.14.0.md @@ -287,19 +287,31 @@ you. ## Bug Fixes -A bug has been fixed that would cause `lnd` to [try to bootstrap using the -currnet DNS seeds when in SigNet -mode](https://github.com/lightningnetwork/lnd/pull/5564). +* A bug has been fixed that would cause `lnd` to [try to bootstrap using the + currnet DNS seeds when in SigNet + mode](https://github.com/lightningnetwork/lnd/pull/5564). -[A validation check for sane `CltvLimit` and `FinalCltvDelta` has been added for `REST`-initiated payments.](https://github.com/lightningnetwork/lnd/pull/5591) +* [A validation check for sane `CltvLimit` and `FinalCltvDelta` has been added + for `REST`-initiated + payments](https://github.com/lightningnetwork/lnd/pull/5591). -[A bug has been fixed with Neutrino's `RegisterConfirmationsNtfn` and `RegisterSpendNtfn` calls that would cause notifications to be missed.](https://github.com/lightningnetwork/lnd/pull/5453) +* [A bug has been fixed with Neutrino's `RegisterConfirmationsNtfn` and + `RegisterSpendNtfn` calls that would cause notifications to be + missed](https://github.com/lightningnetwork/lnd/pull/5453). -[A bug has been fixed when registering for spend notifications in the `txnotifier`. A re-org notification would previously not be dispatched in certain scenarios.](https://github.com/lightningnetwork/lnd/pull/5465) +* [A bug has been fixed when registering for spend notifications in the + `txnotifier`. A re-org notification would previously not be dispatched in + certain scenarios](https://github.com/lightningnetwork/lnd/pull/5465). -[Catches up on blocks in the router](https://github.com/lightningnetwork/lnd/pull/5315) in order to fix an "out of order" error that crops up. +* [Catches up on blocks in the + router](https://github.com/lightningnetwork/lnd/pull/5315) in order to fix an + "out of order" error that crops up. -[Fix healthcheck might be running after the max number of attempts are reached.](https://github.com/lightningnetwork/lnd/pull/5686) +* [Fix healthcheck might be running after the max number of attempts are + reached](https://github.com/lightningnetwork/lnd/pull/5686). + +* [Fix crash with empty AMP or MPP record in + invoice](https://github.com/lightningnetwork/lnd/pull/5743). ## Documentation diff --git a/record/amp.go b/record/amp.go index 53c9b4419..6deb40426 100644 --- a/record/amp.go +++ b/record/amp.go @@ -102,6 +102,10 @@ func (a *AMP) PayloadSize() uint64 { // String returns a human-readble description of the amp payload fields. func (a *AMP) String() string { + if a == nil { + return "" + } + return fmt.Sprintf("root_share=%x set_id=%x child_index=%d", a.rootShare, a.setID, a.childIndex) } diff --git a/record/mpp.go b/record/mpp.go index 6e260d545..db6c95211 100644 --- a/record/mpp.go +++ b/record/mpp.go @@ -105,5 +105,9 @@ func (r *MPP) PayloadSize() uint64 { // String returns a human-readable representation of the mpp payload field. func (r *MPP) String() string { + if r == nil { + return "" + } + return fmt.Sprintf("total=%v, addr=%x", r.totalMsat, r.paymentAddr) }