Commit Graph

14936 Commits

Author SHA1 Message Date
aa17c17f9a Merge pull request #7772 from Roasbeef/release-notes-merge-queue
scripts: update release notes check for merge queue usage
2023-06-27 13:46:29 -04:00
d0ca48a435 Merge pull request #7767 from yyforyongyu/fix-mempool-leak
Fix mempool memory usage
2023-06-22 11:22:20 -05:00
13e198fbde Merge pull request #7777 from yyforyongyu/fix-pprof-redirect
lnd: fix pprof server redirects
2023-06-22 09:20:31 +02:00
148732af61 lnd: fix pprof server redirects 2023-06-22 01:23:27 +08:00
b04a40e7b3 mod: update btcwallet version 2023-06-22 01:09:15 +08:00
f1bca2a59c Merge pull request #7774 from yyforyongyu/log-block-sync
lnd: add debug log when syncing blocks
2023-06-20 13:56:07 +02:00
0d8d0fd261 Merge pull request #7763 from yyforyongyu/enhance-temp-miner
Better temp miner management and more verbose loggings
2023-06-19 10:37:01 +02:00
bd205aac13 lnd: add debug log when syncing blocks 2023-06-19 14:53:56 +08:00
29124dd3b4 itest+lntest: add helper methods to manage temp miners
This commit adds several methods to easily spawn a temp miner and
connect/disconnect it from the original miner.
2023-06-19 14:04:24 +08:00
bacb49ddba peer+server: provide more verbose logging 2023-06-19 14:04:24 +08:00
7f95810359 Merge pull request #7710 from carlaKC/7297-updateaddtlvs
Channeldb: Store HTLC Extra TLVs in Onion Blob Varbytes
2023-06-16 14:31:11 -05:00
02c1261a3d Merge pull request #7728 from shaurya947/memo-pending-channels
lnrpc+itest: return channel Memo for Pending channels
2023-06-16 18:34:30 +02:00
2e1b6597cf Merge pull request #7771 from ellemouton/towerConfigDefaults
multi: add tower config defaults
2023-06-16 09:39:49 +02:00
f42b6a3949 scripts: update release notes check for merge queue usage
Without this commit, PRs can fail to be merged via the merge queue, as
it'll fail with this error:
```
Run scripts/check-release-notes.sh
PR gh-readonly-queue didn't update release notes
Error: Process completed with exit code 1.
```
2023-06-15 17:48:55 -05:00
44fdd02ab4 lnrpc+itest: return channel Memo for Pending channels
In a previous PR we added a Memo field for channels that could be
specified when opening a channel. This was a reference note-to-self
with no bearing on the functioning of the channel. In that PR, the
memo value was returned only through ListChannels. This commit builds
upon that PR by also returning the Memo field for channels returned by
PendingChannels RPC.
2023-06-15 15:16:06 -04:00
7484910968 docs: add release note for 7771 2023-06-15 11:36:44 +02:00
255d8bb355 lncfg: remove deprecated PrivateTowerURIs from Wtclient cfg
This commit removes the `PrivateTowerURIs` member from the `WtClient`
config struct. This field has been deprecated since v0.8.0-beta and
currently, LND would fail to start if the field was specified.
2023-06-15 11:36:44 +02:00
f3525e8b7c multi: add default watchtower config to main LND config
In this commit, a `DefaultWatchtowerCfg` function is added which is used
to construct a default `lncfg.Watchtower` struct. This is then used to
populate the default watchtower config in the main LND config struct.
2023-06-15 11:36:44 +02:00
d9c4ada991 multi: add wtclient config defaults to lnd config
In this commit, a `DefaultWtClientCfg` function is added which
populates some default values for the `WtClient` struct. This is then
used to populate the wtclient defaults in the main LND config struct.
2023-06-15 11:15:32 +02:00
453fbb3358 Merge pull request #7565 from Torakushi/accounts
Fix non-deterministic behaviour for custom accounts
2023-06-14 23:28:42 -05:00
be4dae0ec5 update release-notes-0.17 2023-06-14 09:58:54 +02:00
77d3f00c3b walletrpc+btcwallet: no custom account with various key scopes
Currently, a user can create a custom account with various key scopes.
This is not a desired behaviour.
2023-06-14 09:58:53 +02:00
dd5ed71669 btcwallet: remove LookupAccount because of non-deterministic result
In theory, it should be only one custom account with a given name. However,
users could have created custom accounts with various key scopes. In that case,
'LookupAccount' has a non deterministic behaviour. To fix that, we browse
through all key scopes (deterministically) and return the first account we found.
2023-06-14 09:58:52 +02:00
2ef5ea9742 btcwallet: fix non-deterministic behaviour in ListAccounts
In theory, it should be only one custom account with a given name. However,
due to a lack of check, users could have created custom accounts with various
key scopes. In that case, ListAccounts has to list all these accounts.
2023-06-14 09:58:38 +02:00
cf1f44ab10 Merge pull request #7689 from guggero/housekeeping
Housekeeping (fix small issues, take over stale contributor PRs)
2023-06-13 17:42:53 +02:00
f97f54e088 Merge pull request #7480 from maxwellsayles/fundExpiryOnPending
lnd: compute FundingExpiryBlocks in PendingOpenChannel message
2023-06-13 17:29:15 +02:00
d1002cd218 docs: add contributors to release notes 2023-06-13 11:58:35 +02:00
3835c371c9 watchtowerrpc: updated comments 2023-06-13 11:58:35 +02:00
acee1d77aa docker: add support for custom params RPCHOST and RPCCRTPATH
In this commit we add support for two more custom parameters in the
main entrypoint for the `lnd` Docker image script (`start-lnd.sh`)

The two parameters are:
* RPCHOST    to set a custom endpoint for the RPC server
* RPCCRTPATH to set a custom location for the certificate used when
  communicating with the RPC server
2023-06-13 11:58:34 +02:00
3a5d67a16b cmd/lncli: add confirmation to sendcoins 2023-06-13 11:58:34 +02:00
63b32b9e4a cmd/lncli: add description for payinvoice command 2023-06-13 11:58:34 +02:00
e3055640aa sample-lnd.conf: fix typo in comment.
Correcing minor typo.
2023-06-13 11:58:34 +02:00
d3a5307fc0 cmd/lncli: fix inconsistent argument naming in queryRoutes 2023-06-13 11:58:34 +02:00
681e3ceede rpc: verify address is for correct net
Verify that the addresses we're decoding when sending coins onchain are
for the correct network. Without this check we'll convert the users
addresses to their equivalent on other networks, which is a gross
violation of the principle of least astonishment.
2023-06-13 11:58:34 +02:00
4ea24c0820 cmd/lncli: add unused flag to newAddr command 2023-06-13 11:58:33 +02:00
03b4d88ed7 docs: mention lnd-itest for testing
Fixes #5418.
2023-06-13 11:58:33 +02:00
7ca7526132 lnrpc: update description for VerifyMessage
Fixes #3596.
2023-06-13 11:58:33 +02:00
31330f1ffc walletrpc: add note to poorly named field
Fixes #2986.
2023-06-13 11:58:33 +02:00
56dba2df03 multi: update linter, fix new issues 2023-06-13 11:58:33 +02:00
987b54f52e funding: update release notes to mention funding_expiry_blocks in
`PendingOpenChannel`.
2023-06-12 10:08:18 -07:00
f7bdbb9e73 funding: integration test to verify the value of FundingExpiryBlock on
pending channels that are waiting for funding confirmation.
2023-06-12 10:04:04 -07:00
663b28808a funding: provide FundingExpiryBlock field in PendingOpenChannel message. 2023-06-12 10:04:04 -07:00
9dea695079 funding: make MaxWaitNumBlocksFundingConf public to be used to compute
`FundingExpiryBlocks`.
2023-06-12 10:04:04 -07:00
e549096b88 Merge pull request #7687 from morehouse/fuzz_addr_iter
wtclient: AddressIterator fuzz test
2023-06-12 12:25:08 +02:00
6931a544e1 Merge pull request #7747 from ardevd/gen_protos_full_image_name
fix: use full image name for gen_protos_docker.sh
2023-06-12 11:13:11 +02:00
753af11ed6 Merge pull request #7730 from guggero/grpc-keepalive
config+grpc: allow configuring gRPC keepalive params
2023-06-10 13:45:50 +02:00
bf3668240f docs: add release notes 2023-06-09 10:57:37 +02:00
1515266269 sample-lnd.conf: describe grpc keepalive params 2023-06-09 10:57:37 +02:00
f9f8f6406b config+lnd: allow configuring gRPC keepalive settings
This change allows users to customize the gRPC keepalive settings. The
server ping values configure when the server sends out a ping by itself
and how quickly the client is expected to respond.
The client ping min wait configures the minimum time a client has to
wait before sending another ping. A connection might be closed by the
server if a client pings more frequently than the allowed min wait time.

We choose lower default values than the gRPC library used before:
 - ServerPingTime: 1 minute instead of 2 hours
 - ClientPingMinWait: 5 seconds instead of 5 minutes

This should by itself already make long-standing gRPC streams more
stable but also allow clients to set a custom client ping time of 5
seconds or more (a value of slightly more than 5000 milliseconds should
be chosen to avoid the server disconnecting due to slight timing skews).
2023-06-09 10:57:36 +02:00
0005adaac8 Merge pull request #7752 from yyforyongyu/improve-logging
contractcourt: improve logging for failing dangling htlcs
2023-06-08 18:31:44 +02:00