2021-06-22 04:21:42 +02:00
# Release Notes
2021-08-22 21:08:20 +02:00
## Networking & Tor
2021-08-03 09:57:41 +02:00
2021-09-27 15:41:17 +02:00
### Connectivity mode
2021-08-22 21:08:20 +02:00
A new flag has been added to enable a hybrid tor connectivity mode, where tor
is only used for onion address connections, and clearnet for everything else.
This new behavior can be added using the `tor.skip-proxy-for-clearnet-targets`
flag.
2021-09-27 15:41:17 +02:00
### Onion service
The Onion service created upon lnd startup is [now deleted during lnd shutdown
using `DEL_ONION` ](https://github.com/lightningnetwork/lnd/pull/5794).
### Tor connection
A new health check, tor connection, [is added to lnd's liveness monitor upon
startup](https://github.com/lightningnetwork/lnd/pull/5794). This check will
ensure the liveness of the connection between the Tor daemon and lnd's tor
controller. To enable it, please use the following flags,
```
healthcheck.torconnection.attempts=xxx
healthcheck.torconnection.timeout=xxx
healthcheck.torconnection.backoff=xxx
healthcheck.torconnection.internal=xxx
```
Read more about the usage of the flags in the `sample-lnd.conf` .
2021-08-26 01:46:34 +02:00
## LN Peer-to-Peer Netowrk
### Bitcoin Blockheaders in Ping Messages
[In this release, we implement a long discussed mechanism to use the Lightning
Network as a redundant block header
source](https://github.com/lightningnetwork/lnd/pull/5621). By sending our
latest block header with each ping message, we give peers another source
(outside of the Bitcoin P2P network) they can use to spot check their chain
state. Peers can also use this information to detect if they've been eclipsed
from the traditional Bitcoin P2P network itself.
As is, we only send this data in Ping messages (which are periodically sent),
in the future we could also move to send them as the partial payload for our
pong messages, and also randomize the payload size requested as well.
The `ListPeers` RPC call will now also include a hex encoded version of the
last ping message the peer has sent to us.
2021-08-22 21:08:20 +02:00
## Backend Enhancements & Optimizations
### Full remote database support
2021-08-03 09:57:41 +02:00
`lnd` now stores [all its data in the same remote/external
database](https://github.com/lightningnetwork/lnd/pull/5484) such as `etcd`
instead of only the channel state and wallet data. This makes `lnd` fully
stateless and therefore makes switching over to a new leader instance almost
instantaneous. Read the [guide on leader
election](https://github.com/lightningnetwork/lnd/blob/master/docs/leader_election.md)
for more information.
2021-07-13 12:08:36 +02:00
### Postgres database support
This release adds [support for Postgres as a database
backend](https://github.com/lightningnetwork/lnd/pull/5366) to lnd. Postgres
has several advantages over the default bbolt backend:
* Better handling of large data sets.
* On-the-fly database compaction (auto vacuum).
* Database replication.
* Inspect data while lnd is running (bbolt opens the database exclusively).
* Usage of industry-standard tools to manage the stored data, get performance
metrics, etc.
Furthermore, the SQL platform opens up possibilities to improve lnd's
performance in the future. Bbolt's single-writer model is a severe performance
bottleneck, whereas Postgres offers a variety of locking models. Additionally,
structured tables reduce the need for custom serialization/deserialization code
in `lnd` , saving developer time and limiting the potential for bugs.
Instructions for enabling Postgres can be found in
[docs/postgres.md ](../postgres.md ).
2021-09-21 19:18:26 +02:00
### In-memory path finding
Finding a path through the channel graph for sending a payment doesn't involve
any database queries anymore. The [channel graph is now kept fully
in-memory](https://github.com/lightningnetwork/lnd/pull/5642) for up a massive
performance boost when calling `QueryRoutes` or any of the `SendPayment`
variants. Keeping the full graph in memory naturally comes with increased RAM
usage. Users running `lnd` on low-memory systems are advised to run with the
`routing.strictgraphpruning=true` configuration option that more aggressively
removes zombie channels from the graph, reducing the number of channels that
need to be kept in memory.
2021-10-21 13:55:18 +02:00
There is a [fallback option ](https://github.com/lightningnetwork/lnd/pull/5840 )
`db.no-graph-cache=true` that can be used when running a Bolt (`bbolt`) based
database backend. Using the database for path finding is considerably slower
than using the in-memory graph cache but uses less RAM. The fallback option is
not available for `etcd` or Postgres database backends because of the way they
handle long-running database transactions that are required for the path finding
operations.
2021-07-30 23:50:19 +02:00
## Protocol Extensions
### Explicit Channel Negotiation
2021-11-17 22:34:47 +01:00
[A new protocol extension has been added known as explicit channel
negotiation](https://github.com/lightningnetwork/lnd/pull/5669). This allows a
channel initiator to signal their desired channel type to use with the remote
peer. If the remote peer supports said channel type and agrees, the previous
implicit negotiation based on the shared set of feature bits is bypassed, and
the proposed channel type is used. [Feature bits 44/45 are used to
2021-10-20 03:25:45 +02:00
signal](https://github.com/lightningnetwork/lnd/pull/5874) this new feature.
2021-07-30 23:50:19 +02:00
2021-07-31 00:28:10 +02:00
### Script Enforced Channel Leases
[A new channel commitment type that builds upon the recently introduced anchors
commitment format has been introduced to back channel leases resulting from
Lightning Pool](https://github.com/lightningnetwork/lnd/pull/5709). This new
channel commitment type features an additional spend requirement on any
commitment and HTLC outputs that pay directly to the channel initiator. The
channel initiator must now wait for the channel lease maturity, expressed as an
absolute height of the chain, to be met before being able to sweep their funds,
on top of the usual CSV delay requirement. See the linked pull request for more
details.
2021-10-28 04:38:13 +02:00
### Re-Usable Static AMP Invoices
[AMP invoices are now fully re-usable, meaning it's possible for an `lnd` node
2021-11-17 22:34:47 +01:00
to use a static AMP invoice multiple times](https://github.com/lightningnetwork/lnd/pull/5803).
2021-10-28 04:38:13 +02:00
An AMP invoice can be created by adding the `--amp` flag to `lncli addinvoice` .
From there repeated payments can be made to the invoice using `lncli
payinvoice`. On the receiver side, notifications will still come in as normal,
but notifying only the _new_ "sub-invoice" paid each time.
A new field has been added to the main `Invoice` proto that allows callers to
easily scan to see the current state of all repeated payments to a given
`payment_addr` .
A new `LookupInvoiceV2` RPC has been added to the `invoicerpcserver` which
allows callers to look up an AMP invoice by set_id, opting to only return
relevant HTLCs, or to look up an AMP invoice by its `payment_addr` , but omit
all HTLC information. The first option is useful when a caller wants to get
information specific to a repeated payment, omitting the thousands of possible
_other_ payment attempts. The second option is useful when a caller wants to
obtain the _base_ invoice information, and then use the first option to extract
the custom records (or other details) of the prior payment attempts.
2021-07-17 02:33:00 +02:00
## RPC Server
2021-07-27 13:00:02 +02:00
* [Return payment address and add index from
addholdinvoice call](https://github.com/lightningnetwork/lnd/pull/5533).
* [The versions of several gRPC related libraries were bumped and the main
`rpc.proto` was renamed to
`lightning.proto` ](https://github.com/lightningnetwork/lnd/pull/5473) to fix
a warning related to protobuf file name collisions.
2021-07-17 02:33:00 +02:00
2021-07-26 19:00:45 +02:00
* [Stub code for interacting with `lnrpc` from a WASM context through JSON
messages was added](https://github.com/lightningnetwork/lnd/pull/5601).
2021-06-19 03:47:06 +02:00
* The updatechanpolicy call now [detects invalid and pending channels, and
returns a policy update failure report](https://github.com/lightningnetwork/lnd/pull/5405).
2021-07-17 13:54:41 +02:00
* LND now [reports to systemd ](https://github.com/lightningnetwork/lnd/pull/5536 )
that RPC is ready (port bound, certificate generated, macaroons created,
in case of `wallet-unlock-password-file` wallet unlocked). This can be used to
avoid misleading error messages from dependent services if they use `After`
systemd option.
2021-09-07 11:17:43 +02:00
* [Delete a specific payment, or its failed HTLCs ](https://github.com/lightningnetwork/lnd/pull/5660 ).
2021-08-17 21:16:12 +02:00
* A new state, [`WalletState_SERVER_ACTIVE` ](https://github.com/lightningnetwork/lnd/pull/5637 ),
is added to the state server. This state indicates whether the `lnd` server
and all its subservers have been fully started or not.
2021-08-01 02:39:53 +02:00
* [Adds an option to the BakeMacaroon rpc "allow-external-permissions," ](https://github.com/lightningnetwork/lnd/pull/5304 ) which makes it possible to bake a macaroon with external permissions. That way, the baked macaroons can be used for services beyond LND. Also adds a new CheckMacaroonPermissions rpc that checks that the macaroon permissions and other restrictions are being followed. It can also check permissions not native to LND.
2021-08-12 22:01:38 +02:00
* [A new RPC middleware
interceptor](https://github.com/lightningnetwork/lnd/pull/5101) was added that
allows external tools to hook into `lnd` 's RPC server and intercept any
requests made with custom macaroons (and also the responses to those
requests).
2021-09-20 17:25:14 +02:00
* [Adds NOT_FOUND status code for LookupInvoice ](https://github.com/lightningnetwork/lnd/pull/5768 )
2021-08-30 13:36:46 +02:00
* The `FundingPsbtFinalize` step is a safety measure that assures the final
signed funding transaction has the same TXID as was registered during
the funding flow and was used for the commitment transactions.
This step is cumbersome to use if the whole funding process is completed
external to lnd. [We allow the finalize step to be
skipped](https://github.com/lightningnetwork/lnd/pull/5363) for such cases.
The API user/script will need to make sure things are verified (and possibly
cleaned up) properly. An example script was added to the [PSBT
documentation](../psbt.md) to show the simplified process.
2021-08-12 22:01:38 +02:00
2021-08-24 11:21:59 +02:00
### Batched channel funding
[Multiple channels can now be opened in a single
transaction](https://github.com/lightningnetwork/lnd/pull/5356) in a safer and
more straightforward way by using the `BatchOpenChannel` RPC or the command line
version of that RPC called `lncli batchopenchannel` . More information can be
found in the [PSBT
documentation](../psbt.md#use-the-batchopenchannel-rpc-for-safe-batch-channel-funding).
2021-06-28 12:22:08 +02:00
## Wallet
* It is now possible to fund a psbt [without specifying any
outputs](https://github.com/lightningnetwork/lnd/pull/5442). This option is
useful for CPFP bumping of unconfirmed outputs or general utxo consolidation.
2021-07-21 16:26:01 +02:00
* The internal wallet can now also be created or restored by using an [extended
master root key (`xprv`) instead of an
`aezeed` ](https://github.com/lightningnetwork/lnd/pull/4717) only. This allows
wallet integrators to use existing seed mechanism that might already be in
place. **It is still not supported to use the same seed/root key on multiple
`lnd` instances simultaneously** though.
2021-06-28 12:22:08 +02:00
2021-08-24 02:23:46 +02:00
* [Publish transaction is now reachable through
lncli](https://github.com/lightningnetwork/lnd/pull/5460).
2021-08-17 21:16:12 +02:00
* Prior to this release, when running on `simnet` or `regtest` , `lnd` would
skip the check on wallet synchronization during its startup. In doing so, the
integration test can bypass the rule set by `bitcoind` , which considers the
node is out of sync when the last block is older than 2 hours([more
discussion](https://github.com/lightningnetwork/lnd/pull/4685#discussion_r503080709)).
This synchronization check is put back now as we want to make the integration
test more robust in catching real world situations. This also means it might
take longer to start a `lnd` node when running in `simnet` or `regtest` ,
something developers need to watch out from this release.
2021-10-14 15:43:02 +02:00
### Remote signing
It is now possible to delegate any operation that needs access to private keys
to a [remote signer that serves signing requests over
RPC](https://github.com/lightningnetwork/lnd/pull/5689). More information can be
found [in the new remote signing document ](../remote-signing.md ).
2021-07-17 10:45:17 +02:00
## Security
2021-09-27 11:21:42 +02:00
* The release signature verification script [was overhauled to fix some possible
attack vectors and user
errors](https://github.com/lightningnetwork/lnd/pull/5053). The public keys
used to verify the signatures against are no longer downloaded form Keybase
but instead are kept in the `lnd` git repository. This allows for a more
transparent way of keeping track of changes to the signing keys.
2021-07-17 10:45:17 +02:00
### Admin macaroon permissions
The default file permissions of admin.macaroon were [changed from 0600 to
0640](https://github.com/lightningnetwork/lnd/pull/5534). This makes it easier
to allow other users to manage LND. This is safe on common Unix systems
because they always create a new group for each user.
If you use a strange system or changed group membership of the group running LND
you may want to check your system to see if it introduces additional risk for
you.
2021-05-31 12:06:48 +02:00
## Custom peer messages
Lightning nodes have a connection to each of their peers for exchanging
messages. In regular operation, these messages coordinate processes such as
channel opening and payment forwarding.
The lightning spec however also defines a custom range (>= 32768) for
experimental and application-specific peer messages.
With this release, [custom peer message
exchange](https://github.com/lightningnetwork/lnd/pull/5346) is added to open up
a range of new possibilities. Custom peer messages allow the lightning protocol
with its transport mechanisms (including tor) and public key authentication to
be leveraged for application-level communication. Note that peers exchange these
messages directly. There is no routing/path finding involved.
# Safety
2021-08-09 13:55:39 +02:00
* Locally force closed channels are now [kept in the channel.backup file until
their time lock has fully matured](https://github.com/lightningnetwork/lnd/pull/5528).
2021-08-11 17:59:56 +02:00
* [Cooperative closes optimistically shutdown the associated `link` before closing the channel. ](https://github.com/lightningnetwork/lnd/pull/5618 )
2021-08-22 21:08:20 +02:00
## Build System
2021-07-16 04:22:12 +02:00
2021-11-16 01:03:57 +01:00
* [The illumos operating system has been dropped from the set of release binaries. We now also build with postgres and etcd in the main release binaries ](https://github.com/lightningnetwork/lnd/pull/5985 ).
2021-07-19 18:15:47 +02:00
* [A new pre-submit check has been
added](https://github.com/lightningnetwork/lnd/pull/5520) to ensure that all
PRs ([aside from merge
commits](https://github.com/lightningnetwork/lnd/pull/5543)) add an entry in
2021-08-03 09:57:41 +02:00
the release notes folder that at least links to PR being added.
2021-07-19 18:15:47 +02:00
* [A new build target itest-race ](https://github.com/lightningnetwork/lnd/pull/5542 )
to help uncover undetected data races with our itests.
2021-07-27 10:48:27 +02:00
2021-07-30 10:14:59 +02:00
* [The itest error whitelist check was removed to reduce the number of failed
Travis builds](https://github.com/lightningnetwork/lnd/pull/5588).
2021-07-16 04:22:12 +02:00
2021-07-28 10:04:54 +02:00
* [A flake in the Neutrino integration tests with anchor sweeps was
addressed](https://github.com/lightningnetwork/lnd/pull/5509).
2021-08-11 22:58:49 +02:00
* [The `lnwire` fuzz tests have been fixed and now run without crashing. ](https://github.com/lightningnetwork/lnd/pull/5395 )
2021-08-24 12:01:41 +02:00
* [A flake in the race unit
tests](https://github.com/lightningnetwork/lnd/pull/5659) was addressed that
lead to failed tests sometimes when the CPU of the GitHub CI runner was
strained too much.
2021-09-14 22:08:07 +02:00
* [Reduce the number of parallel itest runs to 2 on
ARM](https://github.com/lightningnetwork/lnd/pull/5731).
2021-09-15 09:20:03 +02:00
* [Fix Travis itest parallelism ](https://github.com/lightningnetwork/lnd/pull/5734 )
2021-08-26 00:47:56 +02:00
* [All CI, containers, and automated release artifact building now all use Go
1.17.1](https://github.com/lightningnetwork/lnd/pull/5650). All build tags have
been updated accordingly to comply with the new Go 1.17.1 requirements.
2021-10-01 11:51:29 +02:00
* [All integration tests (except the ARM itests) were moved from Travis CI to
GitHub Actions](https://github.com/lightningnetwork/lnd/pull/5811).
2021-10-07 18:48:36 +02:00
* [The LndMobile iOS build has been updated to work
with newer gomobile versions](https://github.com/lightningnetwork/lnd/pull/5842)
that output in the `xcframework` packaging format.
Applications that use the iOS build will have to be updated to include
an `xcframework` instead of a `framework` .
2021-10-01 15:19:30 +02:00
* [Upgrade the sub packages to 1.16 ](https://github.com/lightningnetwork/lnd/pull/5813 )
2021-11-03 23:56:40 +01:00
* [CI has been upgraded to build against bitcoind 22.0 ](https://github.com/lightningnetwork/lnd/pull/5928 )
2021-11-04 23:16:21 +01:00
* [Update to the latest neutrino version ](https://github.com/lightningnetwork/lnd/pull/5933 )
2021-08-22 21:08:20 +02:00
## Documentation
2021-07-22 22:19:31 +02:00
* [Outdated warning about unsupported pruning was replaced with clarification that LND **does**
2021-09-14 08:37:19 +02:00
support pruning](https://github.com/lightningnetwork/lnd/pull/5553).
2021-07-22 22:19:31 +02:00
2021-07-27 10:48:27 +02:00
* [Clarified 'ErrReservedValueInvalidated' error string ](https://github.com/lightningnetwork/lnd/pull/5577 )
to explain that the error is triggered by a transaction that would deplete
funds already reserved for potential future anchor channel closings (via
CPFP) and that more information (e.g., specific sat amounts) can be found
in the debug logs.
2021-09-19 21:44:13 +02:00
* [Updated C# grpc docs to use Grpc.Net.Client ](https://github.com/lightningnetwork/lnd/pull/5766 ).
The Grpc.Core NuGet package is in maintenance mode. Grpc.Net.Client is now the
[recommended ](https://github.com/grpc/grpc-dotnet#grpc-for-net-is-now-the-recommended-implementation )
implementation.
2021-08-22 21:08:20 +02:00
## Misc
2021-07-15 11:33:56 +02:00
* The direct use of certain syscalls in packages such as `bbolt` or `lnd` 's own
`healthcheck` package made it impossible to import `lnd` code as a library
into projects that are compiled to WASM binaries. [That problem was fixed by
guarding those syscalls with build tags](https://github.com/lightningnetwork/lnd/pull/5526).
2021-09-07 23:43:36 +02:00
* The only way to retrieve hophints for a given node was to create an invoice
with the `addInvoice` rpc interface. However, now the function has been
[exposed in the go package `invoicesrpc` ](https://github.com/lightningnetwork/lnd/pull/5697 ).
2021-09-27 12:33:58 +02:00
* The `DeleteAllPayments` and `DeletePayment` RPC methods can now be called from
the command line with the [new
`lncli deletepayments` ](https://github.com/lightningnetwork/lnd/pull/5699)
command.
2021-09-28 22:51:24 +02:00
* [Add more verbose error printed to
console](https://github.com/lightningnetwork/lnd/pull/5802) when `lnd` fails
loading the user specified config.
2021-09-25 04:44:17 +02:00
* [Make it possible to add more than one RPC Listener when calling lnd.Main ](https://github.com/lightningnetwork/lnd/pull/5777 ). And
add MacChan field for passing back lnd's admin macaroon back to the program
calling lnd, when needed.
2021-11-17 03:25:53 +01:00
* [The `--amp-reuse` CLI flag has been removed as the latest flavor of AMP now natively supports static invoices ](https://github.com/lightningnetwork/lnd/pull/5991 )
2021-10-22 08:51:37 +02:00
* Using `go get` to install go executables is now deprecated. Migrate to `go install` our lnrpc proto dockerfile [Migrate `go get` to `go install` ](https://github.com/lightningnetwork/lnd/pull/5879 )
2021-11-04 03:01:35 +01:00
* [The premature update map has been revamped using an LRU cache ](https://github.com/lightningnetwork/lnd/pull/5902 )
2021-08-22 21:08:20 +02:00
## Code Health
2021-07-17 15:00:05 +02:00
2021-08-22 21:08:20 +02:00
### Code cleanup, refactor, typo fixes
2021-07-20 09:32:53 +02:00
2021-10-22 22:57:10 +02:00
* [Fix logging typo to log channel point on cooperative closes ](https://github.com/lightningnetwork/lnd/pull/5881 )
2021-08-10 23:15:16 +02:00
* [Refactor the interaction between the `htlcswitch` and `peer` packages for cleaner separation. ](https://github.com/lightningnetwork/lnd/pull/5603 )
2021-09-14 04:00:36 +02:00
* [Moved the original breach handling and timelock UTXO handling into the contract court package ](https://github.com/lightningnetwork/lnd/pull/5745 )
2021-07-17 15:00:05 +02:00
* [Unused error check
2021-07-20 09:32:53 +02:00
removed](https://github.com/lightningnetwork/lnd/pull/5537).
2021-07-27 10:48:27 +02:00
2021-07-20 09:32:53 +02:00
* [Shorten Pull Request check list by referring to the CI checks that are
2021-07-20 15:57:43 +02:00
in place](https://github.com/lightningnetwork/lnd/pull/5545).
2021-07-27 10:48:27 +02:00
2021-07-20 15:57:43 +02:00
* [Added minor fixes to contribution guidelines ](https://github.com/lightningnetwork/lnd/pull/5503 ).
2021-07-27 10:48:27 +02:00
2021-07-18 21:22:19 +02:00
* [Fixed typo in `dest_custom_records` description comment ](https://github.com/lightningnetwork/lnd/pull/5541 ).
2021-07-27 10:48:27 +02:00
2021-08-20 03:00:42 +02:00
* [Fixed payment test error message. ](https://github.com/lightningnetwork/lnd/pull/5559 )
2021-07-27 09:21:05 +02:00
* [Bumped version of `github.com/miekg/dns` library to fix a Dependabot
alert](https://github.com/lightningnetwork/lnd/pull/5576).
2021-07-27 10:48:27 +02:00
2021-07-27 12:45:35 +02:00
* [Fixed timeout flakes in async payment benchmark tests ](https://github.com/lightningnetwork/lnd/pull/5579 ).
2021-07-27 10:48:27 +02:00
2021-09-06 19:08:21 +02:00
* [State, subscribechannelevents, subscribepeerevents, subscribeinvoices, subscribetransactions,
subscribechannelgraph and subscribechannelbackups no longer logs certain errors](https://github.com/lightningnetwork/lnd/pull/5695).
2021-08-06 14:49:30 +02:00
* [Flake fix in async bidirectional payment test ](https://github.com/lightningnetwork/lnd/pull/5607 ).
2021-08-10 08:47:25 +02:00
* [Fixed context timeout when closing channels in tests ](https://github.com/lightningnetwork/lnd/pull/5616 ).
2021-08-12 00:01:15 +02:00
* [Fixed transaction not found in mempool flake in commitment deadline itest ](https://github.com/lightningnetwork/lnd/pull/5615 ).
2021-07-28 10:58:41 +02:00
* [Fixed a missing import and git tag in the healthcheck package ](https://github.com/lightningnetwork/lnd/pull/5582 ).
2021-07-27 10:48:27 +02:00
2021-07-27 11:17:07 +02:00
* [Fixed a data race in payment unit test ](https://github.com/lightningnetwork/lnd/pull/5573 ).
2021-07-27 10:48:27 +02:00
2021-07-17 13:43:11 +02:00
* [Missing dots in cmd interface ](https://github.com/lightningnetwork/lnd/pull/5535 ).
2021-07-17 15:00:05 +02:00
2021-09-14 08:37:19 +02:00
* [Link channel point logging ](https://github.com/lightningnetwork/lnd/pull/5508 ).
2021-07-13 10:10:38 +02:00
2021-09-14 08:37:19 +02:00
* [Canceling the chain notifier no longer logs certain errors ](https://github.com/lightningnetwork/lnd/pull/5676 ).
2021-08-28 00:07:05 +02:00
2021-08-20 13:20:24 +02:00
* [Fixed context leak in integration tests, and properly handled context
timeout](https://github.com/lightningnetwork/lnd/pull/5646).
2021-09-14 08:37:19 +02:00
* [Removed nested db tx ](https://github.com/lightningnetwork/lnd/pull/5643 ).
2021-08-19 17:25:58 +02:00
2021-09-14 08:37:19 +02:00
* [Fixed wallet recovery itests on Travis ARM ](https://github.com/lightningnetwork/lnd/pull/5688 ).
2021-09-03 15:44:07 +02:00
2021-09-14 08:37:19 +02:00
* [Integration tests save embedded etcd logs to help debugging flakes ](https://github.com/lightningnetwork/lnd/pull/5702 ).
2021-09-08 16:36:59 +02:00
2021-09-15 22:34:44 +02:00
* [Replace reference to JWT library with CVE ](https://github.com/lightningnetwork/lnd/pull/5737 )
2021-09-24 20:55:09 +02:00
* [Replace reference to XZ library with CVE ](https://github.com/lightningnetwork/lnd/pull/5789 )
2021-09-19 15:49:05 +02:00
* [Replace reference to mongo library with CVE ](https://github.com/lightningnetwork/lnd/pull/5761 )
2021-08-17 21:16:12 +02:00
* [Fixed restore backup file test flake with bitcoind ](https://github.com/lightningnetwork/lnd/pull/5637 ).
2021-09-14 08:37:19 +02:00
* [Timing fix in AMP itest ](https://github.com/lightningnetwork/lnd/pull/5725 ).
2021-09-14 15:01:28 +02:00
2021-09-14 08:37:19 +02:00
* [Upgraded miekg/dns to improve the security posture ](https://github.com/lightningnetwork/lnd/pull/5738 ).
* [server.go: dedupe pubkey output in debug/log msgs ](https://github.com/lightningnetwork/lnd/pull/5722 ).
2021-09-16 00:51:29 +02:00
2021-08-08 12:35:50 +02:00
* [Fixed flakes caused by graph topology subcription ](https://github.com/lightningnetwork/lnd/pull/5611 ).
* [Order of the start/stop on subsystems are changed to promote better safety ](https://github.com/lightningnetwork/lnd/pull/1783 ).
2021-09-29 23:09:29 +02:00
* [Fixed flake that occurred when testing the new optimistic link shutdown. ](https://github.com/lightningnetwork/lnd/pull/5808 )
2021-08-05 14:45:58 +02:00
* [Respect minimum relay fee during commitment fee updates ](https://github.com/lightningnetwork/lnd/pull/5483 ).
2021-09-29 23:09:29 +02:00
2021-09-19 03:53:09 +02:00
* [Replace reference to protobuf library with OSV ](https://github.com/lightningnetwork/lnd/pull/5759 )
2021-10-07 14:26:00 +02:00
* [Only upload itest logs on failure, fix more
flakes](https://github.com/lightningnetwork/lnd/pull/5833).
2021-09-27 17:57:43 +02:00
* [The interfaces for signing messages and the code for initializing a wallet
was refactored as a preparation for supporting remote
signing](https://github.com/lightningnetwork/lnd/pull/5708).
2021-10-19 09:38:04 +02:00
* [Include htlc amount in bandwidth hints ](https://github.com/lightningnetwork/lnd/pull/5512 ).
2021-10-08 16:32:17 +02:00
* [Fix REST/WebSocket API itest that lead to overall test
timeout](https://github.com/lightningnetwork/lnd/pull/5845).
2021-10-26 13:14:04 +02:00
* [Fix missing label on sweep transactions ](https://github.com/lightningnetwork/lnd/pull/5895 ).
2021-10-05 22:40:13 +02:00
* [Fixed flake that occurred with the switch dust forwarding test under the data race unit build. ](https://github.com/lightningnetwork/lnd/pull/5828 )
2021-07-16 18:07:30 +02:00
* [Run channeldb tests on postgres ](https://github.com/lightningnetwork/lnd/pull/5550 )
2021-10-29 11:24:45 +02:00
* [Fixed two flakes in itests that were caused by things progressing too
fast](https://github.com/lightningnetwork/lnd/pull/5905).
2021-11-08 12:02:25 +01:00
* [Fixes two issues around configuration parsing and error
logging](https://github.com/lightningnetwork/lnd/pull/5948).
2021-07-20 15:16:04 +02:00
## Database
* [Ensure single writer for legacy
code](https://github.com/lightningnetwork/lnd/pull/5547) when using etcd
backend.
2021-07-23 11:55:19 +02:00
* When starting/restarting, `lnd` will [clean forwarding packages, payment
circuits and keystones](https://github.com/lightningnetwork/lnd/pull/4364)
for closed channels, which will potentially free up disk space for long
running nodes that have lots of closed channels.
2021-07-20 15:16:04 +02:00
2021-07-27 10:48:27 +02:00
* [Optimized payment sequence generation ](https://github.com/lightningnetwork/lnd/pull/5514/ )
to make LNDs payment throughput (and latency) with better when using etcd.
2021-07-19 19:21:23 +02:00
2021-07-23 15:49:06 +02:00
* [More robust commit queue design ](https://github.com/lightningnetwork/lnd/pull/5513 )
to make it less likely that we retry etcd transactions and make the commit
queue more scalable.
2021-08-17 16:33:33 +02:00
* [Flatten the payment-htlcs-bucket ](https://github.com/lightningnetwork/lnd/pull/5635 )
in order to make it possible to prefetch all htlc attempts of a payment in one
DB operation. Migration may fail for extremely large DBs with many payments
(10+ million). Be careful and backup your `channel.db` if you have that many
payments. Deleting all failed payments beforehand makes migration safer and
faster too.
2021-08-18 14:42:27 +02:00
* [Prefetch payments on hot paths ](https://github.com/lightningnetwork/lnd/pull/5640 )
to reduce roundtrips to the remote DB backend.
2021-07-19 18:43:05 +02:00
## Performance improvements
* [Update MC store in blocks ](https://github.com/lightningnetwork/lnd/pull/5515 )
to make payment throughput better when using etcd.
2021-08-09 23:54:45 +02:00
* [The `lnwire` package now uses a write buffer pool ](https://github.com/lightningnetwork/lnd/pull/4884 )
when encoding/decoding messages. Such that most of the heap escapes are fixed,
resulting in less memory being used when running `lnd` .
2021-08-26 03:44:55 +02:00
* [`lnd` will now no longer (in a steady state) need to open a new database
transaction each time a private key needs to be derived for signing or ECDH
2021-11-18 09:19:39 +01:00
operations](https://github.com/lightningnetwork/lnd/pull/5629). This results
2021-08-26 03:44:55 +02:00
in a massive performance improvement across several routine operations at the
2021-08-26 01:51:59 +02:00
* [When decrypting incoming encrypted brontide messages on the wire, we'll now
properly re-use the buffer that was allocated for the ciphertext to store the
2021-11-18 09:19:39 +01:00
plaintext](https://github.com/lightningnetwork/lnd/pull/5622). When combined
2021-08-26 01:51:59 +02:00
with the buffer pool, this ensures that we no longer need to allocate a new
buffer each time we decrypt an incoming message, as we
recycle these buffers in the peer.
2021-08-26 03:44:55 +02:00
2021-10-20 01:25:21 +02:00
* [The `DescribeGraph` and `GetNetworkInfo` calls have been
optimized](https://github.com/lightningnetwork/lnd/pull/5873) by caching the
response periodically, or using the new channel graph cache directly. This
should significantly cut down on the garbage these two calls generate.
2021-08-24 01:57:13 +02:00
## Log system
* [Save compressed log files from logrorate during
itest](https://github.com/lightningnetwork/lnd/pull/5354).
2021-08-02 20:50:06 +02:00
## Mission control
* [Interpretation of channel disabled errors was changed to only penalize t
he destination node to consider mobile wallets with hub
nodes.](https://github.com/lightningnetwork/lnd/pull/5598)
2021-08-05 03:31:23 +02:00
## Bug Fixes
2021-09-16 19:29:17 +02:00
* A bug has been fixed that would cause `lnd` to [try to bootstrap using the
2021-07-17 15:44:50 +02:00
current DNS seeds when in SigNet
2021-09-16 19:29:17 +02:00
mode](https://github.com/lightningnetwork/lnd/pull/5564).
2021-08-05 03:31:23 +02:00
2021-09-16 19:29:17 +02:00
* [A validation check for sane `CltvLimit` and `FinalCltvDelta` has been added
for `REST` -initiated
payments](https://github.com/lightningnetwork/lnd/pull/5591).
2021-08-11 21:37:35 +02:00
2021-09-16 19:29:17 +02:00
* [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).
2021-08-11 21:41:59 +02:00
2021-09-16 19:29:17 +02:00
* [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).
2021-09-01 22:49:28 +02:00
2021-09-16 19:29:17 +02:00
* [Catches up on blocks in the
router](https://github.com/lightningnetwork/lnd/pull/5315) in order to fix an
2021-09-17 00:21:00 +02:00
"out of order" error that [crops up ](https://github.com/lightningnetwork/lnd/pull/5748 ).
2021-08-19 05:49:36 +02:00
2021-09-16 19:29:17 +02:00
* [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).
2021-09-02 15:18:58 +02:00
2021-07-15 21:42:05 +02:00
* [Config setting sync-freelist was ignored in certain
cases](https://github.com/lightningnetwork/lnd/pull/5527).
2021-08-31 13:23:35 +02:00
* The underlying gRPC connection of a WebSocket is now [properly closed when the
WebSocket end of a connection is
closed](https://github.com/lightningnetwork/lnd/pull/5683). A bug with the
write deadline that caused connections to suddenly break was also fixed in the
same PR.
2021-09-29 17:07:15 +02:00
* [A bug has been fixed in
Neutrino](https://github.com/lightninglabs/neutrino/pull/226) that would
result in transactions being rebroadcast even after they had been confirmed.
[Lnd is updated to use the version of Neutrino containing this
fix](https://github.com/lightningnetwork/lnd/pull/5807).
2021-07-17 15:44:50 +02:00
* A bug has been fixed that would result in nodes not [reconnecting to their
persistent outbound peers if the peer's IP
address changed](https://github.com/lightningnetwork/lnd/pull/5538).
2021-09-29 17:07:15 +02:00
2021-09-30 13:16:50 +02:00
* [Use the change output index when validating the reserved wallet balance for
SendCoins/SendMany calls](https://github.com/lightningnetwork/lnd/pull/5665)
2021-10-06 14:20:05 +02:00
* A [bug ](https://github.com/lightningnetwork/lnd/pull/5834 ) has been fixed where
certain channels couldn't be passed to `lncli getchaninfo` due to their 8-byte
compact ID being too large for an int64.
2021-10-07 13:32:02 +02:00
* [Dedup stored peer addresses before creating connection requests to prevent
redundant connection requests](https://github.com/lightningnetwork/lnd/pull/5839)
2021-10-25 09:45:22 +02:00
* A [`concurrent map writes` crash was
fixed](https://github.com/lightningnetwork/lnd/pull/5893) in the
[`btcwallet` dependency ](https://github.com/btcsuite/btcwallet/pull/773 ).
2021-10-29 01:52:08 +02:00
* [A bug has been fixed that would at times cause intercepted HTLCs to be
re-notified](https://github.com/lightningnetwork/lnd/pull/5901), which could
lead to higher-level HTLC mismanagement issues.
2021-11-01 10:10:00 +01:00
* [Do not error log when an invoice that has been canceled and GC'd is expired](
https://github.com/lightningnetwork/lnd/pull/5913)
2021-11-02 08:53:54 +01:00
* [Don't print bucket names with special characters when compacting](
https://github.com/lightningnetwork/lnd/pull/5878)
2021-11-01 19:49:36 +01:00
* [Fix pathfinding crash when inbound policy is unknown](
https://github.com/lightningnetwork/lnd/pull/5922)
2021-11-03 14:49:49 +01:00
* [Stagger connection attempts to multi-address peers to ensure that the peer
doesn't close the first successful connection in favour of the next if
the first one was successful](
https://github.com/lightningnetwork/lnd/pull/5925)
2021-11-04 17:50:36 +01:00
* [Fixed an issue with external listeners and the `--noseedbackup` development
flag](https://github.com/lightningnetwork/lnd/pull/5930).
2021-11-08 15:03:00 +01:00
* [Fixed a bug that caused the RPC middleware request ID not to be the same
for intercept messages belonging to the same intercepted gRPC request/response
pair](https://github.com/lightningnetwork/lnd/pull/5950).
2021-11-09 03:25:35 +01:00
2021-11-06 21:32:39 +01:00
* [Fix deadlock when using the graph cache](
https://github.com/lightningnetwork/lnd/pull/5941)
2021-11-08 15:03:00 +01:00
2021-11-13 03:27:19 +01:00
* [Fixes a bug that would cause pruned nodes to stall out ](https://github.com/lightningnetwork/lnd/pull/5970 )
2021-11-17 09:45:45 +01:00
* [Add Postgres connection limit ](https://github.com/lightningnetwork/lnd/pull/5992 )
2021-08-09 19:59:03 +02:00
## Documentation
The [code contribution guidelines have been updated to mention the new
requirements surrounding updating the release notes for each new
change](https://github.com/lightningnetwork/lnd/pull/5613).
2021-06-22 04:21:42 +02:00
# Contributors (Alphabetical Order)
2021-11-18 09:19:39 +01:00
* Abubakar Nur Khalil
* Adrian-Stefan Mares
* Alex Bosworth
* Alyssa Hertig
* András Bánki-Horváth
* Bjarne Magnussen
* Carla Kirk-Cohen
* Carsten Otto
* Conner Fromknecht
* Elle Mouton
* ErikEk
* Eugene Siegel
* Hampus Sjöberg
* Harsha Goli
* Jesse de Wit
* Johan T. Halseth
* Johnny Holton
* Joost Jager
* Jordi Montes
* Juan Pablo Civile
* Kishin Kato
* Leonhard Weese
* Martin Habovštiak
* Michael Rhee
* Naveen Srinivasan
* Olaoluwa Osuntokun
* Oliver Gugger
* Priyansh Rastogi
* Roei Erez
* Simon Males
* Stevie Zollo
* Torkel Rogstad
* Wilmer Paulino
* Yong Yu
* Zero-1729
* benthecarman
* de6df1re
* github2k20
* mateuszmp
* nathanael
* offerm
* positiveblue
* xanoni