2021-11-28 05:26:34 +01:00
# Release Notes
2021-09-11 14:43:46 +02:00
## Security
* [Misconfigured ZMQ
setup now gets reported](https://github.com/lightningnetwork/lnd/pull/5710).
2022-03-24 14:51:46 +01:00
## Taproot
The internal on-chain wallet of `lnd` is now able to create and spend from
[Taproot (SegWit v1)
addresses](https://github.com/lightningnetwork/lnd/pull/6263). Using
`lncli newaddress p2tr` will create a new BIP-0086 keyspend only address and
then watch it on chain. Taproot script spends are also supported through the
`signrpc.SignOutputRaw` RPC (`/v2/signer/signraw` in REST).
2021-12-09 11:36:47 +01:00
## `lncli`
* Add [auto-generated command-line completions ](https://github.com/lightningnetwork/lnd/pull/4177 )
for Fish shell.
2022-01-12 17:38:53 +01:00
* Add [chan_point flag ](https://github.com/lightningnetwork/lnd/pull/6152 )
to closechannel command.
2022-01-17 17:11:27 +01:00
* Add [private status ](https://github.com/lightningnetwork/lnd/pull/6167 )
to pendingchannels response.
2022-02-04 14:31:15 +01:00
* [Update description for `state` command ](https://github.com/lightningnetwork/lnd/pull/6237 ).
2022-04-01 18:40:03 +02:00
* Add [update node announcement ](https://github.com/lightningnetwork/lnd/pull/5587 )
for updating and propagating node information.
2021-12-04 09:17:54 +01:00
## Bug Fixes
2022-02-09 19:39:42 +01:00
* [Pipelining an UpdateFulfillHTLC message now only happens when the related UpdateAddHTLC is locked-in. ](https://github.com/lightningnetwork/lnd/pull/6246 )
2021-12-04 09:17:54 +01:00
* [Fixed an inactive invoice subscription not removed from invoice
registry](https://github.com/lightningnetwork/lnd/pull/6053). When an invoice
subscription is created and canceled immediately, it could be left uncleaned
due to the cancel signal is processed before the creation. It is now properly
handled by moving creation before deletion.
2021-12-04 09:25:39 +01:00
* When the block height+delta specified by a network message is greater than
the gossiper's best height, it will be considered as premature and ignored.
[These premature messages are now saved into a cache and processed once the
height has reached.](https://github.com/lightningnetwork/lnd/pull/6054)
2022-02-07 08:07:10 +01:00
* [Fixed failure to limit our number of hop hints in private invoices ](https://github.com/lightningnetwork/lnd/pull/6236 ).
When a private invoice is created, and the node had > 20 (our hop hint limit)
private channels with inbound > invoice amount, hop hint selection would add
too many hop hints. When a node had many channels meeting this criteria, it
could result in an "invoice too large" error when creating invoices. Hints
are now properly limited to our maximum of 20.
2022-01-30 05:14:37 +01:00
* [Fixed an edge case where the lnd might be stuck at starting due to channel
arbitrator relying on htlcswitch to be started
first](https://github.com/lightningnetwork/lnd/pull/6214).
2022-03-08 07:35:44 +01:00
* [Added signature length
validation](https://github.com/lightningnetwork/lnd/pull/6314) when calling
`NewSigFromRawSignature` .
2022-03-14 10:18:52 +01:00
* [Fixed deadlock in invoice
registry](https://github.com/lightningnetwork/lnd/pull/6332).
2022-03-04 02:12:52 +01:00
* [Fixed an issue that would cause wallet UTXO state to be incorrect if a 3rd
party sweeps our anchor
output](https://github.com/lightningnetwork/lnd/pull/6274).
2022-03-08 07:35:44 +01:00
2022-03-24 04:11:41 +01:00
* [Fixed node shutdown in forward interceptor itests ](https://github.com/lightningnetwork/lnd/pull/6362 ).
2022-03-30 03:08:32 +02:00
* [Fixed a bug that would cause lnd to be unable to parse certain PSBT blobs ](https://github.com/lightningnetwork/lnd/pull/6383 ).
2022-03-28 12:47:23 +02:00
* [Use normal TCP resolution, instead of Tor DNS resolution, for addresses
using the all-interfaces IP](https://github.com/lightningnetwork/lnd/pull/6376).
2022-03-30 03:08:32 +02:00
2022-03-29 18:11:39 +02:00
* [Fixed a bug in the `btcwallet` that caused an error to be shown for
`lncli walletbalance` in existing wallets after upgrading to
Taproot](https://github.com/lightningnetwork/lnd/pull/6379).
2022-03-29 18:23:51 +02:00
* [Fixed a data race in the websocket proxy
code](https://github.com/lightningnetwork/lnd/pull/6380).
2022-03-22 15:41:26 +01:00
* [Fixed race condition resulting in MPP payments sometimes getting stuck
in-flight](https://github.com/lightningnetwork/lnd/pull/6352).
2022-04-12 19:30:13 +02:00
* [Fixed a panic in the Taproot signing part of the `SignOutputRaw` RPC that
occurred when not all UTXO information was
specified](https://github.com/lightningnetwork/lnd/pull/6407).
2021-11-28 05:26:34 +01:00
## Misc
* [An example systemd service file ](https://github.com/lightningnetwork/lnd/pull/6033 )
for running lnd alongside a bitcoind service is now provided in
`contrib/init/lnd.service` .
2021-12-13 10:53:59 +01:00
* [Allow disabling migrations if the database backend passed to `channeldb` was
opened in read-only mode](https://github.com/lightningnetwork/lnd/pull/6084).
2021-12-22 07:08:24 +01:00
* [Disable compiler optimizations ](https://github.com/lightningnetwork/lnd/pull/6105 )
when building `lnd-debug` and `lncli-debug` . It helps when stepping through the code
with a debugger like Delve.
2021-11-11 16:33:04 +01:00
* A new command `lncli leaseoutput` was [added ](https://github.com/lightningnetwork/lnd/pull/5964 ).
2021-12-22 07:08:24 +01:00
2021-12-13 15:32:34 +01:00
* [Consolidated many smaller docs/typo/trivial fixes from PRs that were stuck
in review because of unmet contribution guideline
requirements](https://github.com/lightningnetwork/lnd/pull/6080).
2022-01-14 10:06:47 +01:00
* [A nightly build of the `lnd` docker image is now created
automatically](https://github.com/lightningnetwork/lnd/pull/6160).
2022-01-19 12:01:56 +01:00
2022-01-21 22:55:32 +01:00
* Add default values to [walletrpc.ListUnspent RPC call ](https://github.com/lightningnetwork/lnd/pull/6190 ).
2022-01-19 12:01:56 +01:00
* [Add `.vs/` folder to `.gitignore` ](https://github.com/lightningnetwork/lnd/pull/6178 ).
2022-01-14 10:06:47 +01:00
2022-01-20 13:31:47 +01:00
* [Chain backend healthchecks disabled for --nochainbackend mode ](https://github.com/lightningnetwork/lnd/pull/6184 )
2022-02-21 13:47:06 +01:00
* [The `tlv` package was refactored into its own Golang
submodule](https://github.com/lightningnetwork/lnd/pull/6283).
2022-03-22 14:48:43 +01:00
* The `tor` package was refactored into its own Golang submodule and a new
process for changing and tagging submodules was introduced in a series of
3 PRs ([#6350](https://github.com/lightningnetwork/lnd/pull/6350),
[#6355 ](https://github.com/lightningnetwork/lnd/pull/6350 ) and
[#6356 ](https://github.com/lightningnetwork/lnd/pull/6356 )).
2022-03-21 20:41:41 +01:00
2022-02-28 20:53:47 +01:00
* [Source repository can now be specified for Docker image builds ](https://github.com/lightningnetwork/lnd/pull/6300 )
2022-02-23 14:48:08 +01:00
* [The new `btcsuite/btcd/btcec/v2` and the moved `btcsuite/btcd/btcutil`
modules were integrated into `lnd` as a preparation for basic Taproot
support](https://github.com/lightningnetwork/lnd/pull/6285).
2022-03-17 18:15:13 +01:00
* [Make etcd leader election session
TTL](https://github.com/lightningnetwork/lnd/pull/6342) configurable.
2022-03-22 12:40:08 +01:00
* [Fix race condition in the htlc interceptor unit
test](https://github.com/lightningnetwork/lnd/pull/6353).
2022-01-21 00:53:37 +01:00
* [A new config option, `pending-commit-interval` is
added](https://github.com/lightningnetwork/lnd/pull/6186). This value
specifies the maximum duration it allows for a remote peer to respond to a
locally initiated commitment update.
2022-03-26 23:26:49 +01:00
* [`macos` and `apple` Makefile tasks have been added. ](https://github.com/lightningnetwork/lnd/pull/6373 )
The `macos` task uses `gomobile` to build an `XCFramework` that can be used to
embed lnd to macOS apps, similar to how the `ios` task builds for iOS.
The `apple` task uses `gomobile` to build an `XCFramework` that can be used to
embed lnd to both iOS and macOS apps.
2021-11-04 18:31:51 +01:00
## RPC Server
* [Add value to the field
`remote_balance` ](https://github.com/lightningnetwork/lnd/pull/5931) in
`pending_force_closing_channels` under `pendingchannels` whereas before was
empty(zero).
2021-12-22 11:03:03 +01:00
* The graph's [diameter is calculated ](https://github.com/lightningnetwork/lnd/pull/6066 )
and added to the `getnetworkinfo` output.
2021-11-04 18:31:51 +01:00
2022-01-19 21:48:50 +01:00
* [Add dev only RPC subserver and the devrpc.ImportGraph
call](https://github.com/lightningnetwork/lnd/pull/6149)
2022-01-18 15:17:05 +01:00
* [Extend ](https://github.com/lightningnetwork/lnd/pull/6177 ) the HTLC
interceptor API to provide more control over failure messages. With this
change, it allows encrypted failure messages to be returned to the sender.
Additionally it is possible to signal a malformed htlc.
2022-01-19 21:48:50 +01:00
2022-02-03 15:34:25 +01:00
* Add an [always on ](https://github.com/lightningnetwork/lnd/pull/6232 ) mode to
the HTLC interceptor API. This enables interception applications where every
packet must be intercepted.
2022-03-23 11:32:37 +01:00
* Add [destination output information ](https://github.com/lightningnetwork/lnd/pull/5476 )
to the transaction structure returned from the RPC `GetTransactions` and when
subscribed with `SubscribeTransactions` .
2022-03-31 22:26:21 +02:00
* [Support for making routes with the legacy onion payload format via `SendToRoute` has been removed. ](https://github.com/lightningnetwork/lnd/pull/6385 )
2022-02-28 12:01:42 +01:00
## Database
* [Add ForAll implementation for etcd to speed up
graph cache at startup](https://github.com/lightningnetwork/lnd/pull/6136)
2022-01-31 07:33:39 +01:00
* [Improve validation of a PSBT packet when handling a request to finalize it. ](https://github.com/lightningnetwork/lnd/pull/6217 )
2022-04-01 18:40:03 +02:00
* [Add new Peers subserver ](https://github.com/lightningnetwork/lnd/pull/5587 ) with a new endpoint for updating the `NodeAnnouncement` data without having to restart the node.
2022-01-28 12:56:17 +01:00
* Add [htlc expiry protection ](https://github.com/lightningnetwork/lnd/pull/6212 )
to the htlc interceptor API.
2021-12-17 18:09:10 +01:00
## Documentation
* Improved instructions on [how to build lnd for mobile ](https://github.com/lightningnetwork/lnd/pull/6085 ).
2021-12-31 16:49:18 +01:00
* [Log force-close related messages on "info" level ](https://github.com/lightningnetwork/lnd/pull/6124 ).
2021-12-17 18:09:10 +01:00
2022-02-02 00:57:53 +01:00
## Monitoring
A new [flag (`--prometheus.perfhistograms`) has been added to enable export of
gRPC performance metrics (latency to process `GetInfo` , etc)](https://github.com/lightningnetwork/lnd/pull/6224).
2021-09-18 06:26:01 +02:00
## Code Health
### Code cleanup, refactor, typo fixes
* [Refactored itest to better manage contexts inside integration tests ](https://github.com/lightningnetwork/lnd/pull/5756 ).
2022-01-26 11:38:37 +01:00
* [Fix itest not picking up local config file or creating directories in home
dir of the user](https://github.com/lightningnetwork/lnd/pull/6202).
2022-01-27 14:10:04 +01:00
* [A refactor of `SelectHopHints` ](https://github.com/lightningnetwork/lnd/pull/6182 )
allows code external to lnd to call the function, where previously it would
require access to lnd's internals.
2022-01-27 07:52:03 +01:00
* [rpc-check fails if it finds any changes ](https://github.com/lightningnetwork/lnd/pull/6207/ )
including new and deleted files.
2022-02-08 12:44:16 +01:00
* [The `golangci-lint` package was updated and new linters were
enabled](https://github.com/lightningnetwork/lnd/pull/6244).
2022-02-15 16:30:14 +01:00
* The linting process now runs [inside a docker
container](https://github.com/lightningnetwork/lnd/pull/6248) to fix
versioning issues between projects.
* The [`whitespace` linter ](https://github.com/lightningnetwork/lnd/pull/6270 )
was enabled to make sure multi-line `if` conditions and function/method
declarations are followed by an empty line to improve readability.
2022-01-31 22:18:42 +01:00
**Note to developers** : please make sure you delete the old version of
`golangci-lint` in your `$GOPATH/bin` directory. `make lint` does not
automatically replace it with the new version if the binary already exists!
* [`ChannelLink` in the `htlcswitch` now performs a 2-way handoff instead of a 1-way handoff with its `ChannelArbitrator`. ](https://github.com/lightningnetwork/lnd/pull/6221 )
2022-02-08 12:44:16 +01:00
2022-01-31 18:50:36 +01:00
* [The channel-commit-interval is now clamped to a reasonable timeframe of 1h. ](https://github.com/lightningnetwork/lnd/pull/6220 )
2022-02-18 20:41:56 +01:00
* [A function in the gossiper `processNetworkAnnouncements` has been refactored for readability and for future deduplication efforts. ](https://github.com/lightningnetwork/lnd/pull/6278 )
2021-11-28 05:26:34 +01:00
# Contributors (Alphabetical Order)
2021-12-13 15:32:34 +01:00
* 3nprob
2022-02-28 12:01:42 +01:00
* Andras Banki-Horvath
2021-12-17 18:09:10 +01:00
* Andreas Schjønhaug
2021-12-13 15:32:34 +01:00
* asvdf
2021-12-22 11:03:03 +01:00
* bitromortac
2022-03-23 11:32:37 +01:00
* Bjarne Magnussen
2022-01-19 12:01:56 +01:00
* BTCparadigm
2022-01-27 14:10:04 +01:00
* Carla Kirk-Cohen
2021-12-31 16:49:18 +01:00
* Carsten Otto
2021-12-13 15:32:34 +01:00
* Dan Bolser
2021-11-28 05:26:34 +01:00
* Daniel McNally
2022-03-28 12:47:23 +02:00
* Elle Mouton
2021-12-09 11:36:47 +01:00
* ErikEk
2022-01-31 22:18:42 +01:00
* Eugene Siegel
2022-03-26 23:26:49 +01:00
* Hampus Sjöberg
2021-12-13 15:32:34 +01:00
* henta
2021-11-11 16:33:04 +01:00
* Joost Jager
2022-01-27 07:52:03 +01:00
* Jordi Montes
2021-12-13 15:32:34 +01:00
* LightningHelper
2021-12-22 07:08:24 +01:00
* Liviu
2021-12-13 15:32:34 +01:00
* mateuszmp
* Naveen Srinivasan
2022-02-02 00:57:53 +01:00
* Olaoluwa Osuntokun
2021-12-13 15:32:34 +01:00
* randymcmillan
* Rong Ou
* Thebora Kompanioni
2021-12-09 11:36:47 +01:00
* Torkel Rogstad
2022-01-04 19:42:11 +01:00
* Vsevolod Kaganovych
2022-03-14 10:18:52 +01:00
* Yong Yu