Commit graph

12601 commits

Author SHA1 Message Date
Olaoluwa Osuntokun
ed854cf492 docs/release-notes: add entry for funding API downgrade protection 2021-11-24 14:32:55 -06:00
Olaoluwa Osuntokun
f630cfd4d7 funding: ensure a local funding w/ explicit type can't be downgraded
In this commit, we fix an API inconsistency introduced by a recent fix.
Without this commit, it would be possible for a local user to attempt an
explicit funding type, but then _fallback_ to implicit negotiation if
the remote party didn't have the bit set.

We resolve this by adding a new bit of information to ensure that if
we're the funder and want explicit chan negotiation, we don't settle
for anything less. A new test case has been added to exercise this
behavior.

To recap for posterity, the following issues were found and fixed in the
negotiation logic:

  1. If the remote party sent a channel type (in accept channel), but we
     didn't, then we would error out. We no longer error out and instead
     ensure the channel type they sent matches what we derived via
     implicit funding.

  2. If the remote party _did not_ have the bit set, but they sent a
     chan type (in open channel), we would error out. We no longer error
     out, but instead will fall back to implicit negotiation.

Ultimately we want to eventually flip the explicit funding bit to
_required_ to eliminate any other future ambiguities and also ensure
that it isn't possible to inadvertently fall back to implicit funding,
when the _user_ expects explicit funding.
2021-11-24 14:32:55 -06:00
Oliver Gugger
53342b4794
Merge pull request #6026 from guggero/issue-rebase
Rebase bugfix PRs, prepare for minor release
2021-11-24 18:22:38 +01:00
Oliver Gugger
ee015a1d6e
docs: add release notes for channel negotiation 2021-11-24 17:51:44 +01:00
Oliver Gugger
328e3361ff
funding: don't fail flow on channel type 2021-11-24 17:51:44 +01:00
Oliver Gugger
6ee7913662
funding: don't negotiate on known types 2021-11-24 17:51:44 +01:00
Olaoluwa Osuntokun
32d0ecdca1
docs/release-notes: add entry for cnct bug fix 2021-11-24 14:40:27 +01:00
Olaoluwa Osuntokun
5a28582719
contractcourt: only supplement resolvers if channel has historical state
In this commit, we fix a bug that would cause newly updated nodes to be
unable to start up, if they have an older channel that was closed before
we started to store all the historical state for each channel.

The issue is that we started to write the complete state to disk, but
newer channels don't have it, so when we try to supplement the
resolvers, we run into this error.

Ultimately, we only need this new supplemented information for script
enforcement channels. Ideally we would instead check the channel type
there instead, but it doesn't appear to be available in this context as
is, without further changes.

Fixes https://github.com/lightningnetwork/lnd/issues/6001.
2021-11-24 14:38:56 +01:00
Olaoluwa Osuntokun
5a5d535dc5
docs/release-notes: add section about transitive feature dep fix 2021-11-24 14:36:52 +01:00
Olaoluwa Osuntokun
31ae48c59c
feature: if a bit is unset, then all other features that dep it should be
This fixes an issue where if one tries to unset a feature like anchors,
and other feature depend on it, then `lnd` fails to start as it realizes
that its dependnacy set is inconsistent.

Fixes https://github.com/lightningnetwork/lnd/issues/6002
2021-11-24 14:35:34 +01:00
Oliver Gugger
80720cb63f
Merge pull request #6021 from greywolve/fix-link-test-hint
htlcswitch: fix hint in link tests [skip ci]
2021-11-23 18:18:46 +01:00
Oliver Gugger
9d012e8bab
Merge pull request #6016 from guggero/tor-watchtower
tor+healthcheck: fix healthcheck for multiple services
2021-11-23 15:06:24 +01:00
Oliver Powell
1fe6a3cf9b htlcswitch: fix hint in link tests [skip ci]
Fixes #6020.
2021-11-23 16:04:12 +02:00
Oliver Gugger
1fbe9061ef
Merge pull request #6015 from guggero/submodule-check
GitHub: use go version that understands retract directive
2021-11-23 11:56:20 +01:00
Oliver Gugger
5155ebc405
tor+healthcheck: fix healthcheck for multiple services
Fixes #6013.
This commit fixes the Tor healthcheck that would previously fail if
there were multiple hidden service registered.
In the controller, we only need to know that our service is contained in
the list of active services. But we can't do a string equality check
since there might be multiple services, comma separated.
2021-11-23 09:53:36 +01:00
Oliver Gugger
ca0266d31b
Merge pull request #6012 from nayuta-ueno/chk-error-db
channeldb: check fetchOpenChannel() error
2021-11-23 09:51:56 +01:00
Oliver Gugger
260094cf07
GitHub: use go version that understands retract directive
As is customary with new GitHub actions, they don't work on first
attempt if you don't test them *sigh*

We need to use a more recent version of golang than is pre-installed to
avoid the "unknown directive: retract" error message.
2021-11-23 09:32:14 +01:00
ueno
86425091e9 channeldb: check fetchOpenChannel() error 2021-11-23 17:31:57 +09:00
Oliver Gugger
fd22aab52e
Merge pull request #5999 from guggero/kvdb-update
mod: bump version of kvdb submodule
2021-11-23 09:16:13 +01:00
Oliver Gugger
e95ee4162a
Merge pull request #5961 from jyturley/fix-5937
kvdb/bolt_compact: have log message take account space multiplier
2021-11-23 09:06:45 +01:00
Oliver Gugger
55edd1b260
scripts+GitHub: check submodule version bump 2021-11-22 14:40:28 +01:00
Jamie Turley
fb43843253 kvdb/bolt_compact: have log message take account space multiplier
[skip ci]
2021-11-21 21:52:30 -08:00
Oliver Gugger
74cc9e14a7
Merge pull request #5998 from guggero/release-notes-fix
docs: fix release notes for 0.14.0 release
2021-11-19 08:06:35 +01:00
Oliver Gugger
dc517d89c4
mod: bump version of kvdb submodule
PR #5992 was merged without a bump in the kvdb version which results in
an error when trying to pull in lnd 0.14.0-beta as a library in other
projects.

We'll need to push the kvdb/v1.2.1 tag _after_ merging this PR.
2021-11-18 12:42:32 +01:00
Oliver Gugger
03adf5c626
docs: fix formatting [skip ci] 2021-11-18 09:46:30 +01:00
Max Hillebrand
9ee2129276
docs: fix link & typo in release notes 0.14.0 2021-11-18 09:27:03 +01:00
Olaoluwa Osuntokun
df0b82f016
build: bump version to v0.14.0-beta 2021-11-17 12:02:49 -08:00
Olaoluwa Osuntokun
39b4b7158f
docs/release-notes: update contributor set for 0.14.0 2021-11-17 12:01:16 -08:00
Olaoluwa Osuntokun
451280daa4
Merge pull request #5992 from bottlepay/pg-max-conn
postgres: add connection limit
2021-11-17 11:53:52 -08:00
Olaoluwa Osuntokun
fb060f742c
Merge pull request #5991 from Roasbeef/remove-amp-hold-over
cmd/lncli: remove --amp-reuse flag from lncli payinvoice
2021-11-17 11:21:08 -08:00
Joost Jager
274faff980
postgres: add connection limit 2021-11-17 11:08:43 +01:00
Olaoluwa Osuntokun
94eae34a3b
docs/release-notes: mentionn removing amp-reuse CLI flag 2021-11-16 18:26:12 -08:00
Olaoluwa Osuntokun
7d46836e9a
cmd/lncli: remove --amp-reuse flag from lncli payinvoice
In this commit, we remove the `--amp-reuse` flag as with the latest
version of lnd that implements properly re-useable AMP invoices, this
flag is no longer needed.
2021-11-16 18:19:03 -08:00
Olaoluwa Osuntokun
b0fa19e8b0
Merge pull request #5990 from guggero/lncli-payments-nil-map
cmd/lncli: fix nil map in payment req [skip ci]
2021-11-16 12:00:36 -08:00
Oliver Gugger
f65c259f06
cmd/lncli: fix nil map in payment req [skip ci]
Fixes #5989.
Fixes a panic in lncli if a payment request and the --data flag is used
at the same time.
2021-11-16 13:51:05 +01:00
Olaoluwa Osuntokun
d45675d469
Merge pull request #5985 from Roasbeef/0-14-rc4
multi: bump version to v0.14.0-beta.rc4, include postgres+etcd in release build
2021-11-15 19:58:25 -08:00
Olaoluwa Osuntokun
e94ddf7b17
build: bump release+build version to Go 1.17.3 2021-11-15 17:29:02 -08:00
Olaoluwa Osuntokun
1bff146c43
build: add new WASM specific release/build tags
We need to drop things like postgres+etcd, as they don't understand the
WASM/JS build target.
2021-11-15 17:14:09 -08:00
Olaoluwa Osuntokun
f7dd70b5cb
docs/release-notes: add release notes for illumos drop 2021-11-15 16:04:16 -08:00
Olaoluwa Osuntokun
4c6bc80d83
build: remove illumos as a release build target 2021-11-15 16:01:15 -08:00
Olaoluwa Osuntokun
203bae9aff
build: bump version to v0.14.0-beta.rc4 2021-11-15 13:59:22 -08:00
Olaoluwa Osuntokun
68309d30c2
make+build: build with postgres+etcd for the release build 2021-11-15 13:54:24 -08:00
Olaoluwa Osuntokun
c4e55bbe6b
Merge pull request #5970 from Roasbeef/pruned-block-fix-btcwallet
build: update to new btcwallet version w/ pruned node fix
2021-11-15 10:56:42 -08:00
Olaoluwa Osuntokun
e351b879dc
docs/release-notes: add release notes for pruned node fix 2021-11-12 18:27:57 -08:00
Olaoluwa Osuntokun
d4ae92efb8
build: update to new btcwallet version w/ pruned node fix
See this PR for context: https://github.com/btcsuite/btcwallet/pull/778
2021-11-12 18:24:02 -08:00
James Blachly
c44a108cc9 Docs: fix language ambiguity in key import [skip ci] 2021-11-09 11:49:50 -05:00
yyforyongyu
2aaae4a776
docs: add skip ci to PR checklist [skip ci] 2021-11-10 00:23:26 +08:00
Olaoluwa Osuntokun
1abe1da5b3
build: bump version to v0.14.0-beta.rc3 2021-11-08 18:28:22 -08:00
Olaoluwa Osuntokun
c28b26935c
Merge pull request #5950 from guggero/middleware-request-id
RPC middleware: turn request ID into end-to-end identifier
2021-11-08 18:26:20 -08:00
Olaoluwa Osuntokun
c57b573f23
Merge branch 'master' into middleware-request-id 2021-11-08 18:25:35 -08:00