#### Releases

project release date
eclair v0.5.0

# Eclair v0.5.0

This release includes many exciting new features, API changes as well as several bug fixes and improvements. It is fully compatible with 0.4.2 (and all previous versions of eclair).

# Major changes

### Cluster mode

Eclair now allows you to scale up one logical lightning node across multiple servers.

Front servers take care of routing table related gossip and syncing requests from peers, which is cpu/bandwidth intensive. The backend server can focus on core channel management. BOLT 1 and BOLT 7 messages are handled in the frontend, while BOLT 2 messages go through and are processed in the backend.

This new feature is key for robust and scalable enterprise deployments. Head over to the documentation for more details.

### Blockchain watchdogs

Eclair now includes a blockchain watchdog, that fetches bitcoin headers from various sources in order to detect whether we're being eclipsed.

The current blockchain sources we use are:

• blockstream.info
• mempool.space

### Seed segregation

Eclair now splits your seed into two distinct parts: node_seed.dat and channel_seed.dat.

It makes sense to separate the keys that are used for connection handling and gossip (and have no impact on your funds) from the keys that are used for channel operations (and have a direct, critical impact on your funds).

This change paves the way for future security improvements, such as using hardware wallets for channel keys.

### Per-node feerate tolerance

On-chain feerate spikes have a subtle but important impact on the security of your channel funds. Eclair lets you configure the tolerance you have with your peers via the eclair.on-chain-fees.feerate-tolerance configuration parameter.

With this release, you can now override this configuration for specific nodes. This can be useful when one of your peer is trusted and you know it won't try to cheat you (for example because it's one of your own nodes, a family member's node or a friend). You can configure a higher feerate tolerance with these nodes than with nodes you don't know or trust.

### Plugin improvements

More plugins hooks have been added to eclair, to allow custom connection management and custom commitment formats. Hats off to @btcontract who was able to implement hosted channels entirely as an eclair plugin!

### API changes

This release contains a few improvements to existing APIs:

• The channelId field has been added to the channel-state-changed websocket event
• Initial relay fees can be configured when opening a channel with the open API

Head over to our API documentation for more details.

### Miscellaneous improvements and bug fixes

• #1617 lets you redirect traffic automatically from a tor node to a normal node
• option_static_remotekey is now optionally activated by default

# Verifying signatures

You will need gpg and our release signing key 7A73FE77DE2C4027. Note that you can get it:

To import our signing key:

$gpg --import drouinf.asc  To verify the release file checksums and signatures: $ gpg -d SHA256SUMS.asc &gt; SHA256SUMS.stripped
$sha256sum -c SHA256SUMS.stripped  # Building Eclair builds are deterministic. To reproduce our builds, please use the following environment (*): • Ubuntu 19.10 • AdoptOpenJDK 11.0.6 • Maven 3.6.3 Use the following command to generate the eclair-node package: mvn clean install -DskipTests  That should generate eclair-node/target/eclair-node-0.5.0-XXXXXXX-bin.zip with sha256 checksums that match the one we provide and sign in SHA256SUMS.asc (*) You may be able to build the exact same artefacts with other operating systems or versions of JDK 11, we have not tried everything. # Upgrading This release is fully compatible with Eclair v0.4.2. You don't need to close your channels, just stop eclair, upgrade and restart. # Changelog • 131b2e01 Add workaround for lnd sync issue (#1563) • bffb7a3f Fix race condition in integration test (#1564) • 90bf08e6 Update akka to 2.6.10 (#1568) • 9c16bb75 Manual watching of peer-connection actor (#1567) • b0716aea Make Commitments a trait (#1542) • ad17683b (Minor) Fix Features.toString (#1573) • 98508f30 Fix empty replyTo in update_relay_fee (#1572) • e74f3458 Clarify crossSign helper functions (#1578) • 28f72e41 Remote address in ConnectionInfo (#1579) • baa22696 Rework features compatibility (#1576) • 1f90e5b8 Add per-node feerate tolerance (#1575) • 366f9bef Add a case object to get router data (#1581) • c5566540 Add blockchain watchdog (#1545) • f32e75b0 Segregate the node seed from the channel seed (#1584) • 59449bfc Increase docker timeouts for electrumx in tests (#1589) • c0d465c4 Fix NodeRelayer flaky test (#1588) • e5db3147 Allow plugins to provide broken HTLCs after a restart (#1586) • c0e38841 Add a test to ensure NodeParams.nodeId always equals NodeParams.privateKey.publicKey (#1593) • 54b589cb Improve MPP-send for direct channels (#1599) • 407b330f Remove timedOutOutgoingHtlcs from AbstractCommitments (#1604) • 06c95a7a Clarify trampoline to legacy diagram (#1607) • 6b32fd06 Allow plugins to force reconnect (#1594) • 8bfb9f08 Clean up bitcoinheaders error logs (#1606) • 6330e76d [CI] Exclude tests that call external APIs (#1622) • 848b4338 Ack htlc settlement commands after writing state (#1615) • ed61b577 Improve CustomCommitmentsPlugin methods (#1613) • ce73ef3a Allow overriding of Tor target (#1617) • 8cfa3f5c Set the same priority for all routing messages (#1624) • a2a980c7 Add channelId to websocket event (#1605) • 3ebf601a Minor: Less spammy and better logs (#1618) • 040e6d08 Retrieve bitcoin's mempool-min-fee (#1608) • a4d18456 Set initial relay fees during channel open (#1610) • 8d6af350 Add router API for invoice routing hints (#1590) • 4e567053 Remove old compatibility workaround for eclair mobile (#1625) • 08c21fa5 Distribute connection-handling on multiple machines using akka-cluster (#1566) • c13ae5e1 Set min-fee-rate to 2 sat/byte (#1626) • 0e5ec4dc Fix bug in enforceMinimumFeerate (#1629) • e8b47e14 Move fee provider configuration section (#1631) • 0ce993d6 fixup! Distribute connection-handling (#1566) (#1634) • c7cc536b Improve channel exceptions (#1585) • df7789ed Add metrics to track utxos (#1609) • ade17ecb Use a local actorsystem by default (#1636) • bbbd2294 Accept remote's closing fee when we have nothing at stake (#1633) • 95b34f27 Fix duplicate implicit btc amount conversions (#1637) • 810323ca Settle HTLCs revoked commit (#1630) • 30735b40 fixup! Settle HTLCs revoked commit (#1630) (#1638) • 183bdde0 Activate static_remotekey by default (#1639) • dae5eeed Disable the distibuted pubsub extension by default (#1642) • 413ee29d Fix htlc origin JSON serialization (#1641) • 9425fd4b Make PluginParams a simple trait (#1643) • 370fe416 Measure the distribution of payments across nodes (#1644) • 5e6c28e8 ElectrumWatcher: fix for unconfirmed txs (#1647) • 39d9bfbe Add cluster doc, and packaging improvements (#1646) • d44ff85d (Minor) Improve logs (#1648) 2020-12-18 libwally-core release_0.8.1 • New WASM target for wally in the browser • Use a git submodule for libsecp256k1 • Add manylinux support to build PyPI compatible wheels • Release Python 3.83.9 wheels for Linux • Various build fixes 2020-12-21 ledger-live-common v17.5.0 2020-12-18 ledger-live-common v17.4.2 2020-12-18 ledger-live-common v17.4.1 Flowtype fixes 2020-12-18 ledger-live-common v17.2.3 hotfix with https://github.com/LedgerHQ/ledger-live-common/commit/8b79ef0d3a9efc9c695024917475736da23fe5b5 2020-12-18 ledger-live-common v17.2.2 hotfixes with https://github.com/LedgerHQ/ledger-live-common/commit/3423a38bd894c448f337b5dae3145df8cff9099a and https://github.com/LedgerHQ/ledger-live-common/commit/b119e20540e4adf2c241c304e62d381e66e73d61 2020-12-18 ledger-live-common v17.2.1 hotfixes to upgrade ripple-lib for LLM 2.18.1 2020-12-18 ledger-live-desktop v2.19.0 ## 🚀 Features • New onboarding! Added education on core crypto concepts for new comers. • Added lag alert when users hold high amount of UTXO. • New Litecoin explorers for better performance. • Various UI and wording polishes. ## 🐛 Fixes • Fixed glitches on full node, which remains in experimental mode for now. • Client-side countervalue bug fixes. Remaining latency to improve while we scale our infra. • Fixed Algorand and Cosmos earn reward flow. • Removed negative gains when issuing a supply on Compound. 2020-12-18 ledgerjs v5.37.0 2020-12-18 BTC Pay Server v1.0.6.4 ### Bug fixes: • Fix coin selection label filter (@Kukks) • Greenfield: Fix behaviour after first admin signup (see #2150) @dennisreimann • Greenfield: If invoice is not found, error 404 should be returned rather than a crash @dennisreimann • Attempt to fix sometimes broken Mark as Seen button @NicolasDorier ### Improvements • Improve the invoice details view (see #2144) @dennisreimann @dstrukt ### Miscellaneous • API Keys: Add usage examples link to docs @dennisreimann 2020-12-18 lnd v0.12.0-beta.rc2 This release marks the first major release in the v0.12.x series! As this is a major release several new features are included in this release including: anchor commitment types are now the default, anchor commitment support for watchtowers, new arguments to auto compact the database as well as drop the wtxmgr state, generic wallet PSBT crafting+signing, and much more! As usual, this release contains several important bug fixes, so we recommend all users update. # Database Migrations • TODO: describe "peers-bucket" This release contains a migration to initialize a top-level-bucket for an outpoint index. There is also a subsequent migration that populates this index with an outpoint's status. This will cut down on expensive bbolt transactions throughout the codebase. The migration process should look something like this upon initial start up: 2020-12-21 10:45:07.256 [INF] LTND: Version: 0.12.0-beta commit=v0.12.0-beta, build=production, logging=default 2020-12-21 10:45:07.257 [INF] LTND: Active chain: Bitcoin (network=mainnet) 2020-12-21 10:45:07.257 [INF] LTND: Opening the main database, this might take a few minutes... 2020-12-21 10:45:07.257 [INF] LTND: Opening bbolt database, sync_freelist=false, auto_compact=false 2020-12-21 10:45:07.304 [INF] CHDB: Checking for schema update: latest_version=20, db_version=17 2020-12-21 10:45:07.304 [INF] CHDB: Performing database schema migration 2020-12-21 10:45:07.304 [INF] CHDB: Applying migration #18 2020-12-21 10:45:07.304 [INF] CHDB: Creating top-level bucket: &#34;peers-bucket&#34; ... 2020-12-21 10:45:07.305 [INF] CHDB: Created top-level bucket: &#34;peers-bucket&#34; 2020-12-21 10:45:07.305 [INF] CHDB: Applying migration #19 2020-12-21 10:45:07.305 [INF] CHDB: Creating top-level bucket: &#34;outpoint-bucket&#34; ... 2020-12-21 10:45:07.305 [INF] CHDB: Created top-level bucket: &#34;outpoint-bucket&#34; 2020-12-21 10:45:07.305 [INF] CHDB: Applying migration #20 2020-12-21 10:45:07.324 [INF] LTND: Database now open (time_to_open=67.71764ms)!  # Verifying the Release In order to verify the release, you'll need to have gpg or gpg2 installed on your system. Once you've obtained a copy (and hopefully verified that as well), you'll first need to import the keys that have signed this release if you haven't done so already: curl https://keybase.io/roasbeef/pgp_keys.asc | gpg --import  Once you have the required PGP keys, you can verify the release (assuming manifest-v0.12.0-beta.rc2.txt and manifest-v0.12.0-beta.rc2.txt.sig are in the current directory) with: gpg --verify manifest-v0.12.0-beta.rc2.txt.sig  You should see the following if the verification was successful: gpg: assuming signed data in &#39;manifest-v0.12.0-beta.rc2.txt&#39; gpg: Signature made Tue Dec 15 18:57:27 2020 PST gpg: using RSA key 60A1FA7DA5BFF08BDCBBE7903BBD59E99B280306 gpg: Good signature from &#34;Olaoluwa Osuntokun <laolu32@gmail.com>&#34; [ultimate]  That will verify the signature of the manifest file, which ensures integrity and authenticity of the archive you've downloaded locally containing the binaries. Next, depending on your operating system, you should then re-compute the sha256 hash of the archive with shasum -a 256 <filename>, compare it with the corresponding one in the manifest file, and ensure they match exactly. For this release roasbeef's signature is the secondary signature which can be verified with the following command: gpg --verify roasbeef-manifest-v0.12.0-beta.rc2.txt.sig manifest-v0.12.0-beta.rc2.txt gpg: Signature made Wed Sep 30 17:35:20 2020 PDT gpg: using RSA key 4AB7F8DA6FAEBB3B70B1F903BC13F65E2DC84465 gpg: Good signature from &#34;Olaoluwa Osuntokun <laolu32@gmail.com>&#34; [ultimate]  ## Verifying the Release Timestamp From this new version onwards, in addition to time-stamping the git tag with OpenTimeStamps, we'll also now timestamp the manifest file along with its signature. Two new files are now included along with the rest of our release artifacts: manifest-v0.12.0-beta.rc2.txt.sig.ots and manifest-v0.12.0-beta.rc2.txt.ots. Assuming you have the opentimestamps client installed locally, the timestamps can be verified with the following commands: ots verify manifest-v0.12.0-beta.rc2.txt.ots ots verify manifest-v0.12.0-beta.rc2.txt.sig.ots -f roasbeef-manifest-v0.12.0-beta.rc2.txt.sig  Alternatively, the open timestamps website can be used to verify timestamps if one doesn't have a bitcoind instance accessible locally. These timestamps should give users confidence in the integrity of this release even after the key that signed the release expires. ## Verifying the Release Binaries Our release binaries are fully reproducible. Third parties are able to verify that the release binaries were produced properly without having to trust the release manager(s). See our reproducible builds guide for how this can be achieved. The release binaries are compiled with go1.15.6, which is required by verifiers to arrive at the same ones. They include the following build tags: autopilotrpc, signrpc, walletrpc, chainrpc, invoicesrpc, routerrpc, and watchtowerrpc. Note that these are already included in the release script, so they do not need to be provided. The make release command can be used to ensure one rebuilds with all the same flags used for the release. If one wishes to build for only a single platform, then make release sys=<os-arch> tag=<tag> can be used. Finally, you can also verify the tag itself with the following command: $ git verify-tag v0.12.0-beta.rc2
gpg: Signature made Tue 15 Dec 2020 10:31:06 PM UTC using RSA key ID 9B280306
gpg: Good signature from &#34;Olaoluwa Osuntokun <laolu32@gmail.com>&#34;


# Building the Contained Release

Users are able to rebuild the target release themselves without having to fetch any of the dependencies. In order to do so, assuming that vendor.tar.gz and lnd-source-v0.12.0-beta.rc2.tar.gz are in the current directory, follow these steps:

tar -xvzf vendor.tar.gz
tar -xvzf lnd-source-v0.12.0-beta.rc2.tar.gz
GO111MODULE=on go install -v -mod=vendor -ldflags &#34;-X github.com/lightningnetwork/lnd/build.Commit=v0.12.0-beta.rc2&#34; ./cmd/lnd
GO111MODULE=on go install -v -mod=vendor -ldflags &#34;-X github.com/lightningnetwork/lnd/build.Commit=v0.12.0-beta.rc2&#34; ./cmd/lncli


The -mod=vendor flag tells the go build command that it doesn't need to fetch the dependencies, and instead, they're all enclosed in the local vendor directory.

Additionally, it's now possible to use the enclosed release.sh script to bundle a release for a specific system like so:

make release sys=&#34;linux-arm64 darwin-amd64&#34;


⚡️⚡️⚡️ OK, now to the rest of the release notes! ⚡️⚡️⚡️

# Release Notes

## New Default Autopilot Heuristic

In this version of lnd, the default heursitic for autopilot has been changed from preferential attachment, to a version that will attempt to optimize for the betweeness centrality of the node. At a high level, this change means that rather than trying to connect (stochastically) to the nodes that have the most channels, lnd will instead attempt to connect to the nodes that appear most often in the shortest paths within the network. This change will serve to step as a stepping stone to further diffuse the graph to make it more resilient.

## Pathfinding Improvements

lnd will now properly penalize attempts of larger "wumbo" sized payments proportionally. This will serve to ensure that clients with less active failure information are able to properly prune the search space by increasing the attempt cost for larger payments. New flags has been added to allow users to configure the attempt cost for this value (attemptcost and attemptcostppm). We encourage users taht frequently send larger payments to tweak these parameters to find what works best, and ideally communicate this information back to the maintainers of lnd so we can better tune the current default value.

lnd will now batch all insertion operations related to channel graph which should greatly speed up initial graph download. Initial becnhmarks show this change resluting in a 3x speed increase, with further gains likely being seen on mobile and more constrained platforms.

A new flag has been added to lnd to enforce a global connection timeout when trying to connect out to new peers. Setting a lower value for this new command line option (timeout) will mean that lnd will give up on unrechable peers much sooner than before, which can be useful when attempting to connect to a set of addresses to open chnnel to a peer.

## Automatic Database Compaction

The most important data of any lnd node is stored in its channel database (channel.db). The database library currently used for this DB is bbolt which by design does not give back free space to the file system, even if data is deleted from the DB. This can lead to large DB files and slow startup times. Compaction is the process of creating a fresh copy of a bbolt database that only contains data and no "reserved free space". This process also de-fragments and validates the integrity of the data.

Automatic compaction of the channel.db can now be turned on with the flag --db.bolt.auto-compact. By default this will compact on startup, if the last compaction was more than a week ago. The flag --db.bolt.auto-compact-min-age can also be set to 0 to force compaction on every startup, independent of how long ago it happened last.

### Anchor Output Channels

lnd will now open the new channel type dubbed "anchor channels" by default if both peers support it. This is a channel type that has been available to advanced users since lnd v0.10, but it has seen a few updates that makes it even safer and useful in high fee scenarios, and it is now in line with a proposed BOLT change.

The anchor channel type is a new type of channel that is much safer in high fee scenarios, as it allows bumping the fees after the channel has been force closed, instead of making the peers agreeing on a future close fee. This is also a nice UX improvement, as less of the channel capacity needs to go towards the commitment fee reserve, and can instead be used for payments. In addition it allows bundling multiple HTLC transactions together into one, potentially saving on chain fees in force close scenarios.

The commitment transaction still needs to be signed up front with a fee that ensures its mempool acceptance, and this fee now defaults to 10 sat/vbyte. This can be tuned by the --max-commit-fee-rate-anchors flag, but this should be used with caution. One can opt-out of the anchor channel type for new channels by setting the --protocol.no-anchors flag.

### Static Remote Key Feature Bit Required

This new version of lnd now requires channels that use a static remote key, AKA "tweakless commitments". This change improves safety and security for users as now when a channel is force closed by the remote party, the funds will go directly to a user control key. Prior versions of lnd have supported this channel type, but lnd will now only allow this type of channel when making channels with new peer.

Lnd will waive this requirement in the case where it still has legacy channels with a peer. This ensures that lnd can still connect to nodes it has existing channels with, even if they do not understand the feature bit.

### Improved End to End Payment Security

The MPP protocol upgrade included a so called "payment address" that improves end-to-end payment security by requiring the sender to include a special nonce in the onion payload specify by the receiver. As intermediate nodes can't guess this secret ahead of time, and it's encrypted in the onion only to the finally receiver, they thwarts a large class of probing and de-anonymization attacks. This new release of lnd will now require this feature bit set in any new invoices it creates, which means all payments that don't include this new payment secret will be rejected.

## PSBT Signing

The internal wallet can now create and sign PSBTs. In combination with the ListUnspent RPC this allows RPC users to implement full coin control. This feature also takes us one step closer to the goal of supporting watch-only on-chain wallets in lnd where an online node would only have public keys to track the UTXOs and would delegate the signing to a non-networked lnd node that has the private keys, all through using PSBTs. Read more about the possible use cases and dive into the examples in our PSBT documentation.

## Build System

Leveraging the power of GitHub Workflows, we now automatically build and push docker images of all our releases to Docker Hub. This includes images for amd64 and arm64.

The distinction between the production Dockerfile and the development dev.Dockerfile were made more clear in the documentation.

The release binaries for all OS/architectures are now also built by a GitHub Workflow. The deterministic build system introduced in a previous release allows us to independently build and sign the binaries locally. Signatures of more than just one developer will be added to releases in the future.

The experiential build tag has been removed for the assumechanvalid flag that is used to prevent long rescans for neutrino nodes.

## Continuous Integration

Our continuous integration pipeline, most notably our integration tests, has received a number of improvements and bug fixes making them considerably faster and somewhat more stable: - An integration test suite running against a bitcoind with the TX index disabled was added. - The ~70 integration tests are now split into 4 parts and run in parallel reducing the execution time by ~50%. - Log files are only uploaded to termbin.com and file.io for failed runs and the bitcoind binaries are extracted from a docker image instead of being downloaded, shaving off a few more minutes from the total itest execution time. - The test harness for the btcd node used as the mining node were improved to fix port collisions which resulted in flaky tests. - A check was added that forces new command line flags to also be documented in the sample-lnd.conf file. - A new make target for itest flake hunting was added. - New make targets for running fuzz tests were added. - Build tags were removed from the integration test files, allowing the linter to check those as well. - The zpay32 package's Decode and Encode functions now have corresponding fuzz tests in the fuzz package. - The brontide fuzz tests have been fixed. - Fuzz testing has been optimized to instruct gofuzz to always mutate the input.

## Contract Court Performance Improvements

Performance improvements were made to the contract court subsystem which is responsible for closing out channels on chain and taking on-chain actions required to fully resolve the channel. The number of database transactions required to start up the subsystem has been reduced from one per channel to a single transaction, which reduces startup time. Improvements to the way the subsystem consumes new blocks from its backing bitcoin node have also improved the memory footprint of the system.

## Extended Health Checks

A new optional healthcheck has been added to insturct lnd to restart itself in order to refresh an expired RPC TLS cert. This change is useful in containerized contexts such as k8s, where an auto restarting lnd is able to propagate any auth changes in a decoupled manner upon restart.

## htlcswitch Enhancements

Database contention has been reduced in the link by batching removal of forwarding packages. The removal timer has also been increased from 1 minute to 1 hour.

A bug has been fixed in our non-strict forwarding randomization to ensure we explciitly randomize our link sleection rather than relying on the undefined ordering of map interation in the Go spec.

## Peer Flap Rate Tracking

An update to the channel fitness subsystem has introduced tracking of the number of times lnd is connected and disconnected from each of its peers. This information is surfaced in the output of the ListPeers API.

The flap rate we have recorded for peers is also used to rate limit the amount of data lnd will store to track the peer’s uptime. If a peer has a high flap rate, lnd will reduce the amount of data it stores in memory, resulting in more aggregated uptime information. This change is intended to protect against constantly flapping peers, and will have little effect on peers that are consistently online with the occasional restart. To ensure that we do not permanently punish a peer for a period of instability long in the past, the flap rate we track for peers is exponentially cooled down over time.

## RPC Enchancements & Bug Fixes

### Uniform Unconfirmed Coin Selection for SendCoins+

This change the following RPCs:

• Lightning.SendCoins
• Lightning.SendMany
• WalletKit.SendOutputs

We've added two new parameters for these methods, following the same format as used for Lightning.OpenChannel RPC:

• min_confs (default=1)
• spend_unconfirmed (default=false)

### Macaroon Root ID Key Rotation

lnd now supports root ID key rotation. This allows the baker (creator) of a set of macaroons to invalidate them all by deleting and regenerating the root key used to generate the macaroons. This feature is a useful security tool, as if an application/system that uses lnd's macaroons in a fine grained manner is compromised, the admin is able to revoke all generated macaroons.

Several new calls have been added to allow users to take advantage of this feature, namely: * The lncli bakemacaroon call now accepts a new parameter: root_key_id. This new field is an integer that can be used to rotate root ID keys. * A new lncli listmacaroonids command has been added to allow callers to monitor all their existing allocated root IDs. * A new lncli deletemacaroonid call has been added which implements macaroon revocation by allowing the caller to delete a specified root key ID.

### New Verbose Output for ChannelBalance

The lncli channebalance call now returns much more information than before in order to give users more insight w.r.t exactly how their funds are distributed off-chain. An output of the new call resmbles the following:

⛰lncli channelbalance
{
&#34;balance&#34;: &#34;27476201&#34;,
&#34;pending_open_balance&#34;: &#34;0&#34;,
&#34;local_balance&#34;: {
&#34;sat&#34;: &#34;27476201&#34;,
&#34;msat&#34;: &#34;27476201135&#34;
},
&#34;remote_balance&#34;: {
&#34;sat&#34;: &#34;109137173&#34;,
&#34;msat&#34;: &#34;109137173865&#34;
},
&#34;unsettled_local_balance&#34;: {
&#34;sat&#34;: &#34;0&#34;,
&#34;msat&#34;: &#34;0&#34;
},
&#34;unsettled_remote_balance&#34;: {
&#34;sat&#34;: &#34;0&#34;,
&#34;msat&#34;: &#34;0&#34;
},
&#34;pending_open_local_balance&#34;: {
&#34;sat&#34;: &#34;0&#34;,
&#34;msat&#34;: &#34;0&#34;
},
&#34;pending_open_remote_balance&#34;: {
&#34;sat&#34;: &#34;1783362&#34;,
&#34;msat&#34;: &#34;1783362000&#34;
}
}


Note that the first two fields (balance and pending_open_balance) are now deprecated and will be removed in the future. Callers should use the new fields that return both sat and msat instead.

### Additional HTLC Information in ListChannels

The ListChannels call will now return additional information about the set of linked HTLCs in a channel. Namely, we'll now return: * The htlc_index of the HTLC within the channel * The forwarding_channel, or the channel that forwarded the HTLC to the targte channel * The forwarding_htlc_index, or the HTLC index on the forwarded channel.

### Automated Let's Encrypt Certificates

A new series of command line flags have been added to lnd which allows users to automatically obtain and renew a Let's Encrypt Certificate for the RPC interface of their lnd node. With this change, in certain configurations, callers will be able to hit an lnd now without having to manually store and update the tls.cert locally. New flags added to the lnd command line and lnd.conf:

• --letsencryptport: The port on which lnd will listen for Let's Encrypt challenges. Let's Encrypt will always try to contact on port 80. Often non-root processes are not allowed to bind to ports lower than 1024. This configuration option allows a different port to be used, but must be used in combination with port forwarding from port 80.
• --letsencryptdir: The directory to store Let's Encrypt certificates within. By default this is .lnd/letsencrypt.
• --letsencryptdomain: Request a Let's Encrypt certificate for the domain specified using this flag.

When lncli cannot find a tls.cert file, it will assume the server has a valid (Let's Encrypt) certificate. It is important to pass the domain name as a command line flag to lncli:

lncli --rpcserver my.domain.org:10009

This is necessary as well when connecting to localhost.

### Allow No RPC Auth on Private Addresses

A new config evaluation has been added to allow user to instruct lnd that it should allow RPC requests with no authentiation only if lnd is listening on a private address. This makes certain Docker based configurations more user friendly, as any dependent containers no longer need to obtain and update lnd's RPC authentication information. Assuming lnd is only listening on a non-public private interface, then the --no-macaroons config option is now valid.

### New Channel Acceptor Parameters

Additional fields have been added to the ChannelAcceptor API, which allow custom setting of custom errors for the remote peer, an upfront shutdown address for the channel (if supported by the peer), and more. Note that the error provided will be sent to the peer verbatim, so should not contain sensitive information.

### Maximum Local CSV

When opening a channel, the remote party can specify the CSV delay for your funds. This value determines the amount of time that your balance will be unavailable in the case where your force close the channel. A max_local_csv parameter has been added to allow setting of custom limitations on this value. For outgoing channels, this can be set using the max_local_csv field in the OpenChannel request. The maxlocaldelay config value can be used to set a default maximum value for all channels.

### Disable TLS for REST

It is now possible to disable TLS for REST RPC using --no-rest-tls.

## Refactoring

This release sees the removal of several components from the main lnd package: - fundingmanager.go and tests are moved to the funding package. - chainregistry.go and chainparams.go have been moved to the chainreg package. - mock.go has been removed in favor of the lntest/mock package. - A global variable activeNetParams has been removed.

The peer package's dependency on brontide has been removed.

## Miscellaneous

The DNS servers to use for initial peer bootstrapping can now be specified to overwrite the hard coded default values.

All supported command line flags are now also properly documented in the sample-lnd.conf file.

### Multi node management

Hosting nodes on non-trusted (cloud) hardware was made safer by adding a stateless initialization mode that instructs lnd to not store any unencrypted macaroons on the host's file system. Instead, the admin macaroon is returned in the response of the wallet creation request and must be stored by the caller.

To support the stateless initialization mode mentioned above on the client side as well, configuration profiles for lncli can now be created. Those profiles make it easy to interact with multiple nodes from the same client machine. For additional security the macaroons stored in the profiles can optionally be encrypted with a password.

### Recovery

Forcing the on-chain wallet to rescan its state from chain was made easier by adding the --reset-wallet-transactions flag to lnd that replaces the functionality previously only available in the external tool dropwtxmgr.

### Individual subsystem log levels

A change that makes it possible to set the log level for individual subsystems was merged. One can now specify a global log level, and subsystem log levels that will override the global setting: --debuglevel=debug,PEER=info,SRVR=trace.

# Contributors (Alphabetical Order)

Alex Bosworth András Bánki-Horváth Ben Woosley Bjarne Magnussen Calvin Zachman Carla Kirk-Cohen Carsten Otto Conner Fromknecht Dan Janosik Daniel Babbev Dominik Spicher Eugene Siegel Federico Bond Glen Cooper githorray Graham Krizek Hampus Sjöberg Johan T. Halseth Joost Jager Juan Pablo Civile Jules Lamur Kartik Shah Marty Jones Matheus Degiovani Mayank Chhabra MrManPew Olaoluwa Osuntokun Oliver Gugger positiveblue Roei Erez Tom Kirkpatrick Torkel Rogstad Wilmer Paulino Yaacov Akiba Slama Yan Pritzker yyforyongyu /laolu32@gmail.com/laolu32@gmail.com/laolu32@gmail.com

2020-12-19

#### RFC

type rfc # title date status
bip bip-0039 Add Portuguese wordlist to BIP39 2020-12-20 Merged
bip bip-0322 [WIP] bip-322: strip out proof-of-funds related stuff and fix several issues 2020-12-24 Merged
bolt X Lightning Specification Meeting 2020/12/07 2020-12-22 Closed
bolt X Add specs for offline payments 2020-12-21 Update
bolt X Reflect legacy payload type handling implementation in BOLT 2020-12-24 Update
slip X added: Voken 2020-12-22 Merged
slip X added: Voken 2020-12-22 Closed
slip slip-0044 slip-0044: add DIVER 2020-12-21 Merged
slip slip-0044 Update slip-0044.md for POLYX / Polymath 2020-12-21 Merged
slip X Add Dock 2020-12-18 Merged