mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-18 21:35:24 +01:00
record: fix nil pointer in log string
This commit is contained in:
parent
7d012ae581
commit
dd3f3e7ce5
@ -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
|
||||
|
||||
|
@ -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 "<nil>"
|
||||
}
|
||||
|
||||
return fmt.Sprintf("root_share=%x set_id=%x child_index=%d",
|
||||
a.rootShare, a.setID, a.childIndex)
|
||||
}
|
||||
|
@ -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 "<nil>"
|
||||
}
|
||||
|
||||
return fmt.Sprintf("total=%v, addr=%x", r.totalMsat, r.paymentAddr)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user