Commit Graph

14736 Commits

Author SHA1 Message Date
Olaoluwa Osuntokun
6bd30047c1
build: bump version to v0.16.4 2023-07-04 12:56:21 -07:00
Olaoluwa Osuntokun
3bf179a888
build: bump version to v0.16.4 rc1 2023-06-22 11:29:27 -05:00
Olaoluwa Osuntokun
8dcd8529a2 Merge branch 'v0-16-4-branch-7767' into v0-16-4-branch 2023-06-22 11:28:32 -05:00
yyforyongyu
dea815dac2 mod: update btcwallet version 2023-06-22 11:27:53 -05:00
Olaoluwa Osuntokun
47483f1c66
build: bump version to v0.16.3 2023-06-05 11:51:04 -07:00
Olaoluwa Osuntokun
f76e52e60a
Merge pull request #7724 from Roasbeef/v0-16-3-branch
build: create v0.16.3 release branch
2023-05-29 12:51:56 -07:00
Olaoluwa Osuntokun
29f9fe5c1a
build: bump version to v0.16.3-beta.rc1 2023-05-29 12:50:34 -07:00
Olaoluwa Osuntokun
96435425e9 Merge branch 'v0-16-3-branch-7726' into v0-16-3-branch 2023-05-29 12:50:05 -07:00
Olaoluwa Osuntokun
96a24e035c docs/release-notes: add release notes for adamant htlc sweeps 2023-05-29 12:50:05 -07:00
Olaoluwa Osuntokun
1ba6467c6b contractcourt: force the sweeper to always resolve outgoing HTLCs
In this commit, we attempt to fix an issue that may lead to force closes due
to small value HTLCs. The sweeper has built in a "negative yield" heuristic
where it won't sweep something that'll result in paying more fees than the
HTLC amount. However for HTLCs, we want to always sweep them, as we don't
cancel back the HTLCs before the outgoing contract is fully resolved.

In the future, we'll start to make more uneconomical decisions about if we
should go to chain at all for small value HTLCs, and also do things like
cancel back early if the HTLC is small and we think we might be contested by
chain fees.
2023-05-29 12:50:05 -07:00
Olaoluwa Osuntokun
9b4fce1468 Merge branch 'v0-16-3-branch-7711' into v0-16-3-branch 2023-05-23 14:23:15 -07:00
Olaoluwa Osuntokun
ddf551f16d htlcswitch: add new LinkFailureDisconnect action
In this commit, we add a new LinkFailureDisconnect action that'll be
used if we detect that the remote party hasn't sent a revoke and ack
when it actually should.

Before this commit, we would log our action, tear down the link, but
then not actually force a connection recycle, as we assumed that if the
TCP connection was actually stale, then the read/write timeout would
expire.

In practice this doesn't always seem to be the case, so we make a strong
action here to actually force a disconnection in hopes that either side
will reconnect and keep the good times rollin' 🕺.
2023-05-23 14:23:05 -07:00
Olaoluwa Osuntokun
5d20d088e9 htlcswitch: add new LinkFailureAction enum
In this commit, we add a new LinkFailureAction enum to take over the old
force close bool. Force closing isn't the only thing we might want to do
when we decide to fail the link, so this is a prep refactoring for an
upcoming change.
2023-05-23 14:22:39 -07:00
Olaoluwa Osuntokun
fcbe6844c0 Merge branch 'v0-16-3-branch-7705' into v0-16-3-branch 2023-05-22 18:13:39 -07:00
Elle Mouton
bd43defefd docs: add release note for 7705 2023-05-22 18:13:26 -07:00
Elle Mouton
9b98352caf macaroons: let ChangePassword re-encrypt all root keys
The ChangePasswords method should re-encrypt all the root keys found
in the store, not just the default root key.
2023-05-22 18:12:19 -07:00
Elle Mouton
143fc4ced4 macaroons: demo ChangePassword bug
This commits uses TestStoreChangePassword to demonstrate that currently
the ChangePassword function only changes the password of the default
root key and not that of other root keys. This will be fixed in an
upcoming commit.
2023-05-22 18:12:19 -07:00
Elle Mouton
51f0082c53 macaroons: Let GenerateNewRootKey be applied to all root keys
With this commit, GenerateNewRootKey will regenerate the Default root
key and will then also check if any other root keys exist and regenerate
those as well.
2023-05-22 18:12:19 -07:00
Elle Mouton
ee01956978 macaroons: demo GenerateNewRootKey bug
This commit adds to the existing TestStoreGenerateNewRootKey to show
that the method only successfully regenerates the root key in the
default root key ID location. This will be fixed in an upcoming commit.
2023-05-22 18:12:19 -07:00
Olaoluwa Osuntokun
b26be81c7a Merge branch 'v0-16-3-branch-7681' into v0-16-3-branch 2023-05-22 18:11:34 -07:00
yyforyongyu
4d0136af8c docs: add release notes 0.16.3 2023-05-22 18:11:26 -07:00
yyforyongyu
caabfb7eb4 itest: cleanup channels for testSwitchOfflineDeliveryOutgoingOffline 2023-05-22 18:11:26 -07:00
yyforyongyu
43b774d1e6 itest: make sure edges are updated in mpp tests 2023-05-22 18:11:26 -07:00
yyforyongyu
1ce7559110 lntest+itest: clean mempool in testHtlcTimeoutResolverExtractPreimageRemote 2023-05-22 18:11:26 -07:00
yyforyongyu
5e1664dc82 mod: update btcwallet's version 2023-05-22 18:11:24 -07:00
Olaoluwa Osuntokun
fdbeb1e702 Merge branch 'v0-16-2-branch-7647' into v0-16-2-branch 2023-04-28 14:03:30 -05:00
yyforyongyu
6cf1b086a9 contractcourt: skip checkpoint timeout resolver upon mempool spend
Previously when a block spend is found for the outpoint, our htlc
timeout resolver will do a checkpoint, which implicitly creates a db
record if there isn't one. Now, if the spend is found in mempool,
the resolver will be deleted once the contract is resolved. Later on
when the spend is found in the block again, the resolver will be created
again, but never gets resolved this time.
2023-04-28 14:03:30 -05:00
yyforyongyu
12f3cd5bb1 contractcourt: add debug logs for unresolved contracts 2023-04-28 14:03:30 -05:00
Olaoluwa Osuntokun
63f01c1ebd
build: bump version to v0.16.2 2023-04-27 16:37:27 -05:00
Olaoluwa Osuntokun
5b00c4fc93 Merge branch 'v0-16-2-branch-7641' into v0-16-2-branch 2023-04-27 16:36:51 -05:00
Olaoluwa Osuntokun
a6345797ae build: update to btcwallet version with async mempool scan
This version of btcwallet demotes some spammy logs (txns replaced in the
mempool), and makes the initial mempool scan async.

Fixes https://github.com/lightningnetwork/lnd/issues/7640
2023-04-27 16:36:51 -05:00
Olaoluwa Osuntokun
f7129c1d62 Merge branch 'v0-16-2-branch-7637' into v0-16-2-branch 2023-04-27 16:35:23 -05:00
yyforyongyu
0d1c5f85fc lnd: skip canceling rebroadcast for neutrino backend 2023-04-27 16:35:23 -05:00
Olaoluwa Osuntokun
fb765fdb1d
build: bump version to v0.16.1-beta 2023-04-24 13:10:16 -05:00
Olaoluwa Osuntokun
a82192efb7
build: bump version to v0.16.1-beta.rc3 2023-04-21 15:55:42 -07:00
Olaoluwa Osuntokun
508b0a4426 lnd v0.16.0-beta
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEE9Pxw8HMQAoQk78IKjkJWWT8XdyAFAmQkNkYACgkQjkJWWT8X
 dyC5fRAAvhiI4TTDqxdJmTcj1nxA6iUYB4nAqL4wegnXSv9ntcaQ5c10vGLiBi9Y
 D/Uqqfnz73OaATRcDjaeZdONTFd4q7mM21ymrAqbfv8OpjeccO5fOrtsAPQKMNK3
 3ipT7Ej+KgF5QatAUlm8joqBJ4SXB9y6AmPqRbdNyBu4yf3AJf69EOjTG2dW+E3x
 XPQfeMw5cBSSM6VKIdTY3cQvzX5jUU3lBtahSL4wChPzh4bYZTnn6hydkSkkmqjp
 SyYD6KYZ4Ul4Mh+evlWzqDwfJHfNL82ZwHxJ1bfrVJQ34ZQanlH014/baRYNR1in
 eALSUf/YRkf65HNETF8g4oeiUFc2ymx4zY3dZMeNZ9Rij0KE6OJVg3ZS/5zUITkJ
 1TWpO92nPe9v6f9SkZA6YotHwUg7GX+II7frs+8d0RGbEipc2JjN2p8DewuszDGi
 QT5iYk+PQcoQVYJM79GmoZAa7DgZASodJGz2Huml6J7cjMXq+3bJ4JCo9L0SMu0B
 mSESi+3Y9Sy4Ujpq3ryqbsehTq/nWQq5nFuA3miLsqEfLy5sunOct0/RhyWtGnFu
 2YEVQPI0cmAFV5v8QsLKtOXj8QSpSsZK7w+G1nbukpa0HhkUZxk3WQxbcbYctIkW
 5D133P3E7yNQm7Nr3JYkwN0foDdWUvAdkQQSVtSBlpZw6kyGnuQ=
 =BNTa
 -----END PGP SIGNATURE-----

Merge tag 'v0.16.0-beta' into v0-16-1-branch-rc3

lnd v0.16.0-beta
2023-04-21 15:52:34 -07:00
Olaoluwa Osuntokun
c2851c2342 Merge branch 'v0-16-1-branch-rc1-7599' into v0-16-1-branch-rc2 2023-04-21 14:02:01 -07:00
Olaoluwa Osuntokun
fc3b8bff69 sweep: remove conflicted sweep txns from the rebroadcaster
In this commit, we an existing gap in our rebroadcast handling logic. As
is, if we're trying to sweep a transaction and a conflicting transaction
is mined (timeout lands on chain, anchor swept), then we'll continue to
try to rebroadcast the tx in the background.

To resolve this, we give the sweeper a new closure function that it can
use to mark conflicted transactions as no longer requiring rebroadcast.
2023-04-21 14:01:48 -07:00
Olaoluwa Osuntokun
31b27fdd3d
build: bump version to v0.16.1-beta.rc2 2023-04-20 11:35:29 -07:00
Olaoluwa Osuntokun
4c10599ae0 build: bump version to v0.16.1-beta.rc2 2023-04-19 20:59:46 -07:00
Olaoluwa Osuntokun
8c1f9a8e5a Merge branch 'v0-16-1-branch-rc1-7609' into v0-16-1-branch-rc1 2023-04-19 11:44:32 -07:00
Olaoluwa Osuntokun
c96fe0ec58 chainreg: increase default CLTV value to 80 blocks (~13 hrs)
In this commit, we increase the default CTLV value to 80 blocks.
Initially this was set to 144 blocks in the early days, but then was
lowered to 40 blocks as the lnd implementation matured. By setting this
to a higher value, we increase the safety window (MTTR) when it comes to
node downtime, and also add some buffer room around time locks which may
become more stressed in the future assuming the current mempool load
remains persistent.
2023-04-19 11:43:04 -07:00
Olaoluwa Osuntokun
e808e913ec
Merge pull request #7611 from Roasbeef/v0-16-1-branch-rc1
release: create v0.16.1-beta.rc1 branch
2023-04-19 11:37:05 -07:00
Olaoluwa Osuntokun
a4e815c05c
docs/release-notes: move docs for postgres kvdb 2023-04-19 11:31:28 -07:00
Olaoluwa Osuntokun
334f005ba1 Merge branch 'v0-16-1-branch-rc1-7613' into v0-16-1-branch-rc1 2023-04-19 11:29:49 -07:00
Elle Mouton
11f1735e85 funding: use default fwding policy if persisted values not found
In this commit, a bug is fixed in the funding manager that could result
in the funding process erroring out if the persisted initial forwarding
policy is not found. This could occur if a node restarts after opening a
channel that is not yet fully confirmed and also upgrades their node
from a pre-0.16 version to 0.16 since the values are only expected to be
persisted after 0.16.
2023-04-19 11:29:49 -07:00
yyforyongyu
b90b66ea80 chainreg: update bitcoind polling config 2023-04-18 18:29:27 -07:00
yyforyongyu
e207424da8 docs: update release notes for mempool watch 2023-04-18 18:29:20 -07:00
yyforyongyu
7149b12cd9 itest+lntest: add itest for mempool preimage watch 2023-04-18 18:28:28 -07:00
yyforyongyu
946b4f0184 lntest: add more methods to assert mempool state 2023-04-18 18:28:28 -07:00