Commit Graph

12472 Commits

Author SHA1 Message Date
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
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
Olaoluwa Osuntokun
5166e19e9e
Merge pull request #5948 from guggero/daemon-error-logging
Fix logging issues, cleanup config parsing
2021-11-08 18:05:12 -08:00
Olaoluwa Osuntokun
e7e3adeb98
Merge pull request #5941 from bhandras/graph_cache_deadlock
channeldb: avoid locking the graph cache while iterating channels
2021-11-08 17:51:07 -08:00
Oliver Gugger
842221aab2
config: move directory creation to after path fixes
Fixes #5927.
This commit moves the code that attempts to create parent directories to
the correct place _after_ we've adjusted all path values to point to the
correct places. Before this commit the macaroon and tor paths would
point to their default locations, even if the --lnddir flag was
specified.
2021-11-08 22:39:41 +01:00
Oliver Gugger
35b4382f7a
docs: update release notes 2021-11-08 22:39:41 +01:00
Oliver Gugger
41c579fd09
multi: run go fmt with go 1.17 2021-11-08 22:39:41 +01:00
Oliver Gugger
602d2065eb
lnd: make sure error is logged to file
Fixes #5936.
This commit makes sure every error that causes the Main() function to
return is logged to the log file in addition to being printed to stderr.
2021-11-08 15:15:27 +01:00
Oliver Gugger
338afef862
lnd: standardize printing to stdout
With this commit we standardize the error messages in the config parsing
section of the main package. We only print to stdout/stderr in a single
place and also make sure the same error is printed to the log (which
might or might not yet be initialized at that point).
2021-11-08 15:12:56 +01:00
Oliver Gugger
87a49b17cc
docs: add release notes 2021-11-08 15:03:00 +01:00
Oliver Gugger
54a25146f4
rpcperms: add unique request ID
This commit adds a unique request ID that is the same for each gRPC
request and response intercept message or each request/response message
of a gRPC stream.
2021-11-08 15:01:26 +01:00
Oliver Gugger
9a28a4a9ff
lnrpc+rpcperms+lntest: add unique MW message ID
This commit adds a new unique intercept message ID that is different for
each message sent to an RPC middleware. This will allow us to re-purpose
the existing request ID field into its original intention, which was to
have a unique ID for a full gRPC request/response pair or gRPC stream as
a whole.
2021-11-08 15:00:29 +01:00
Andras Banki-Horvath
0beaee0336
docs: update release notes 2021-11-08 12:40:18 +01:00
Andras Banki-Horvath
3df216f6c3
channeldb: avoid locking the graph cache while iterating channels
It may happen that we do pathfinding while also attempt to change the
graph. In this case changing the database, channel state, graph while
reading from the same sources may create deadlocks. To resolve this we
change locking policy in the graph cache when pathfinding.
2021-11-08 12:40:14 +01:00
Oliver Gugger
54584aabb6
Merge pull request #5930 from guggero/no-seed-backup-macaroon
config_builder: always send admin macaroon
2021-11-05 11:54:36 +01:00
Oliver Gugger
77e457a48e
docs: update release notes 2021-11-05 10:50:07 +01:00
Oliver Gugger
08b196e236
config_builder: always send admin mac on chan 2021-11-05 10:49:37 +01:00
Oliver Gugger
87c5b76e4d
lnd: simplify listener creation 2021-11-05 10:49:37 +01:00
Olaoluwa Osuntokun
b7b3326433
build: bump version to v0.14.0-beta.rc2 2021-11-04 17:58:29 -07:00
Olaoluwa Osuntokun
55d983dee7
server: defer ticker stop to avoid goroutine leak 2021-11-04 17:53:36 -07:00
Olaoluwa Osuntokun
1ab5cc3ae8
Merge pull request #5925 from ellemouton/staggerConnToMultipleAddresses
server: stagger connReqs to multi-address peers
2021-11-04 17:48:49 -07:00
Olaoluwa Osuntokun
5404fe82c1
Merge pull request #5873 from Roasbeef/rpc-graph-cache
channeldb+rpc: optimize graph related RPC calls
2021-11-04 17:38:28 -07:00
Olaoluwa Osuntokun
7d6915d17c
Merge pull request #5902 from Roasbeef/lru-chan-upd
discovery: revamp premature update map
2021-11-04 16:46:28 -07:00
Olaoluwa Osuntokun
090b917ee2
docs/release-notes: add entry for rpc graph cache 2021-11-04 15:30:36 -07:00
Olaoluwa Osuntokun
67e18e6089
rpc: optimize DescribeGraph by caching the response
Unfortunately, we can't use the graph cache directly here as it doesn't
include all the information we need, since it only includes the minimal
amount of information needed for path finding.

Instead, we use a simple mutex guarded cache that evicts itself after a
certain interval. The default is set small enough that most users
shouldn't really notice. We also provide a way to disable the cache, and
also disable the cache in the itests.

Fixes https://github.com/lightningnetwork/lnd/issues/1232
2021-11-04 15:30:31 -07:00
Olaoluwa Osuntokun
79406696ad
rpc: optimize GetNetworkInfo by using the channel graph cache 2021-11-04 15:30:29 -07:00
Olaoluwa Osuntokun
fae470293f
channeldb: add new ForEachNode method using the channel graph cache
This commit, adds a new ForEachNode method to the channel graph cache
that assumes the contents won't be modified. This is generally useful,
and will be used in a later commit to optimize some heavy RPC calls.
2021-11-04 15:30:25 -07:00
Olaoluwa Osuntokun
75ae7e68b0
docs/release-notes: add new entry for gossip cache revamp 2021-11-04 15:21:25 -07:00
Olaoluwa Osuntokun
5a8255550b
discovery: revamp recent rejects map
Similar to the prior commit, in this commit, we move to using a basic
LRU cache to store the set of prior rejected messages.
2021-11-04 15:21:20 -07:00
Olaoluwa Osuntokun
8627b5d128
discovery: revamp premature update map
Turns out we need it right now to handle some low latency race
conditions in our integration tests, so we'll opt to simply cap the size
of it to a low amount. We use a basic LRU caching mechainsm.

Fixes https://github.com/lightningnetwork/lnd/issues/5076
2021-11-04 15:21:18 -07:00