Commit Graph

13664 Commits

Author SHA1 Message Date
Oliver Gugger
43521633ce
docs: update release notes 2022-10-11 09:56:04 +02:00
Oliver Gugger
f02528f304
multi: bump Golang version to v1.19.2 2022-10-11 09:49:30 +02:00
Oliver Gugger
079537514c
Merge pull request #7012 from sputn1ck/sputn1ck_pgp_key
scripts: add sputn1ck  pgp key
2022-10-11 09:08:38 +02:00
sputn1ck
d16fcf12aa
scripts: add sputn1ck pgp key
[skip ci]
2022-10-11 09:00:46 +02:00
Oliver Gugger
ccbc578bd9
Merge pull request #7011 from ffranr/add_pgp_signing_key
scripts: add ffranr PGP signing key
2022-10-11 08:57:54 +02:00
Olaoluwa Osuntokun
2ac0fcb769
Merge pull request #6957 from Roasbeef/co-op-close-fee-estimation
lnwallet/chancloser: properly compute initial fee of cop close txn
2022-10-10 15:39:24 -07:00
Olaoluwa Osuntokun
30eb6770e5
lnwallet/chancloser: fix loop variable shadowing in TestMaxFeeBailOut 2022-10-10 14:50:51 -07:00
Olaoluwa Osuntokun
2482de9cab
lnwallet/chancloser: properly compute initial fee of cop close txn
In this commit, we modify the way we compute the starting ideal fee for
the co-op close transaction. Before thsi commit, channel.CalcFee was
used, which'll compute the fee based on the commitment transaction
itself, rathern than the co-op close transaction. As the co-op close
transaction is potentailly bigger (two P2TR outputs) than the commitment
transaction, this can cause us to under estimate the fee, which can
result in the fee rate being too low to propagate.

To remedy this, we now compute a fee estimate from scratch, based on the
delivery fees of the two parties.

We also add a bug fix in the chancloser unit tests that wasn't caught
due to loop variable shadowing.

The wallet import itest has been updated as well, since we'll now pay
600 extra saothis to close the channel, since we're accounting for the
added weight of the P2TR outputs.

Fixes #6953
2022-10-10 14:50:45 -07:00
Robyn
8ab914dae5
scripts: add ffranr PGP signing key [skip ci] 2022-10-10 19:08:28 +01:00
Olaoluwa Osuntokun
406fc86f38
Merge pull request #7004 from Roasbeef/witness-limit-hot-fix
build: update to version of btcd with wire parsing bug fix
2022-10-09 19:34:03 -07:00
Olaoluwa Osuntokun
1c884846e7
docs/release-notes: shift prior 0.15.2 release to 0.15.3
We also add an entry for the _new_ 0.15.2 hot fix release.
2022-10-09 18:39:40 -07:00
Olaoluwa Osuntokun
b3dc56fd9e
build: update to version of btcd with wire parsing bug fix
Fixes https://github.com/lightningnetwork/lnd/issues/7002
2022-10-09 18:39:34 -07:00
Oliver Gugger
6ab6ba91bb
Merge pull request #6969 from tongokongo/master
Clarification sample-lnd.conf
2022-10-07 15:09:50 +02:00
Olaoluwa Osuntokun
ffa8ba8dfc
Merge pull request #6998 from Crypt-iQ/6990_zeroconftimeout_noitest
funding: ignore maxWaitNumBlocksFundingConf for zero conf channels
2022-10-06 17:51:25 -07:00
Olaoluwa Osuntokun
b2c78d9488
Merge pull request #6993 from lightningnetwork/pr-stats-please-work
build: add PR stats to github workflow
2022-10-06 17:44:09 -07:00
eugene
62eca941b1
release-notes: update for 0.15.2 2022-10-06 19:34:56 -04:00
eugene
79e618268d
funding: ignore maxWaitNumBlocksFundingConf for zero conf channels
This is so that if the funding transaction hasn't been confirmed
in 2016 blocks, the channel isn't marked as closed by the responder.
2022-10-06 19:34:54 -04:00
Olaoluwa Osuntokun
2f16997a98 build: add PR stats to github workflow
In this PR, we introduce a new Github work flow tool that should help us
keep better track fo reviewer load across the proejct. Ideally this can
also be used as a tool to help new PRs find a reviewer, and also for us
to better balance out review load, and keep track of how long it takes
to do PR turnaround.
2022-10-05 13:18:02 -07:00
Oliver Gugger
2efc70a5c4
Merge pull request #6966 from guggero/remote-signer-fix
lncli+docs: fix and document remote signing setup upgrade to lnd v0.15.2-beta
2022-10-05 13:13:11 +02:00
Oliver Gugger
c698b3acf2
Merge pull request #6970 from guggero/issue-template-chooser
GitHub: show issue triage page when submitting an issue
2022-10-04 09:33:57 +02:00
Oliver Gugger
9eaf0cb73f
GitHub: add link to discussions [skip ci] 2022-10-03 18:41:36 +02:00
Oliver Gugger
f5a3b735f6
GitHub: add template for feature requests 2022-10-03 18:41:36 +02:00
Oliver Gugger
bd507c4c37
GitHub: move default template to bug_report.md, add config
With this commit we prepare for adding multiple issue templates to
GitHub that will be shown when the user clicks on the "New Issue" button
on GitHub.
The config.yml will also add a bunch of useful links to the page that
shows the different issue templates.
An example of how this template selection page looks like can be found
here: https://github.com/lightninglabs/lightning-terminal/issues/new/choose
2022-10-03 18:41:36 +02:00
TonySanak
fe973d694d Update sample-lnd.conf
bitcoin.rpcpolling has to be set to true, otherwise malformed key=value (bitcoind.rpcpolling) error happens during initialization.
2022-10-03 09:33:29 -07:00
Oliver Gugger
abbf47fde8
docs: add release notes [skip ci] 2022-10-03 13:44:03 +02:00
Oliver Gugger
fb9e9f57c5
docs: describe remote signing upgrade process
This commit adds a short guide that explains how a remote signing node
setup should be migrated from lnd v0.14.x-beta to lnd v0.15.x-beta and
adds a note to all 0.15.x release notes.
2022-10-03 13:33:31 +02:00
Oliver Gugger
828ce07ca5
cmd/lncli: add p2tr address type to account import 2022-10-03 13:22:32 +02:00
Olaoluwa Osuntokun
bc5638428e
Merge pull request #6789 from Crypt-iQ/waitingclose
server+htlcswitch: check waiting-close fwdpkgs in reforwardResponses
2022-09-30 16:39:49 -07:00
Olaoluwa Osuntokun
94ab72363a
Merge pull request #6914 from positiveblue/fix-6898
addinvoice: refactor hint hop selection algorithm
2022-09-30 11:57:54 -07:00
eugene
ff3c942a96
release-notes: update for 0.16.0 2022-09-30 14:40:41 -04:00
eugene
bb956e127e
server+htlcswitch: check waiting-close fwdpkgs in reforwardResponses
Previously, the Switch would not check waiting-close channels' fwdpkgs
for settles or fails to reforward. This could result in a force close
in a rare edge case if a restart occurred at the wrong time. Now,
waiting-close fwdpkgs are checked and the issue is avoided.
2022-09-30 14:40:38 -04:00
positiveblue
55ddbd41c4
docs: add release notes for hop hint selection refactor 2022-09-30 06:55:16 -07:00
positiveblue
584f1089f7
aliasmgr: cache peer alias in memory 2022-09-30 06:55:16 -07:00
positiveblue
4b0bc9a7c6
invoicesrpc: unit tests for invoice hop hints 2022-09-30 06:55:16 -07:00
positiveblue
fbe79811cf
invoicesrpc: refactor addinvocie hop hint selection
In order to reduce the number of calls to the db we try to process as
few channels as we can + try to not do extra work for each of them.

- First fetch all the channels. Then, filter all the public ones and
  sort the potential candidates by remote balance.

- Filter out each potential candidate as soon as possible.

- Only check the alias if the channel supports scid aliases.

- Because we sort the channels by remote balance, we will hit the
  target amount, if possible, as soon as we can.

We do not want to leak information about our remote balances, so we
shuffle the hop hints (the forced ones go always first) so the invoice
receiver does not know which channels have more balance than others.
2022-09-30 06:55:10 -07:00
Oliver Gugger
35c59643cd
Merge pull request #6500 from voltagecloud/encrypt-tor-privkey
[tor] Add ability to encrypt the Tor private key on disk
2022-09-30 10:06:42 +02:00
Orbital
14cc7e5892
docs: update release notes 2022-09-30 01:54:31 -05:00
Graham Krizek
c284574104
docs: Add a section in configuring_tor about the --tor.encryptkey flag 2022-09-30 01:53:46 -05:00
Orbital
073c990c75
multi: Add --tor.encryptkey flag functionality to encrypt the Tor private key on disk
It's possible that a user might not want the Tor private key to sit on the disk in plaintext (it is a private key after all). So this commit adds a new flag to encrypt the Tor private key on disk using the wallet's seed. When the --tor.encryptkey flag is used, LND will still write the Tor key to the same file, however it will now be encrypted intead of plaintext. This essentially uses the same method to encrypt the Tor private key as is used to encrypt the Static Channel Backup file.
2022-09-30 01:53:46 -05:00
Graham Krizek
e0fc5bb234
lnencrypt: Moves the crypto functions in the chanbackup package into its own package called lnencrypt
The functions inside of the crypto.go file in chanbackup (like EncryptPayloadToWriter and DecryptPayloadFromReader) can be used by a lot of things outside of just the chanbackup package. We can't just reference them directly from the chanbackup package because it's likely that it would generate circular dependencies. Therefore we need to move these functions into their own package to be referenced by chanbackup and whatever new functionality that needs them
2022-09-30 01:53:45 -05:00
Orbital
f3bd2227fa
keychain: change KeyFamilyStaticBackup name to reflect its new, broader role 2022-09-30 01:53:43 -05:00
Oliver Gugger
4b2edc4777
Merge pull request #6753 from hieblmi/openchannel-fee-rates
lncli: `base_fee_msat` and `fee_rate_ppm` for `openchannel`
2022-09-29 15:43:56 +02:00
Slyghtning
5083cc5607 docs: release notes for channel fees of openchannel 2022-09-29 08:31:48 -04:00
Slyghtning
6ea89a51af unit: openchannel fee update and db tests 2022-09-29 08:31:48 -04:00
Slyghtning
41822a8baf itest: openchannel fee scenarios 2022-09-29 08:31:47 -04:00
Slyghtning
2a90b2439a lncli: channel fee parameter for openchannel 2022-09-29 08:21:09 -04:00
Slyghtning
1e030c2d48 rpcserver: parse channel fees into InitFundingMsg 2022-09-29 08:21:09 -04:00
Slyghtning
e87412bd63 funding+channeldb: handle and persist channel fees 2022-09-29 08:21:06 -04:00
Slyghtning
021cb07b39 lnrpc: channel fee parameters for OpenChannelRequest 2022-09-28 09:28:11 -04:00
Oliver Gugger
b8545de5c0
Merge pull request #6941 from lightningnetwork/taproot-fee-estimation-fix
build: update to latest version of btcwallet w/ taproot estimation fix
2022-09-28 11:51:25 +02:00