Commit Graph

14497 Commits

Author SHA1 Message Date
Oliver Gugger
dcf69169e5
Merge pull request #7492 from yyforyongyu/gossip-add-log
Add trace logs for `discovery` to catch test flakes
2023-03-09 12:52:01 +01:00
Oliver Gugger
d5942bf692
Merge pull request #7499 from Roasbeef/bump-go-version
build: bump min Go version to 1.19
2023-03-09 10:35:47 +01:00
Olaoluwa Osuntokun
0bbbd9b911
build: bump min Go version to 1.19
Fixes https://github.com/lightningnetwork/lnd/issues/7495
2023-03-08 18:02:57 -08:00
yyforyongyu
b8373f5628
lntest: use trace log level for discovery 2023-03-08 21:03:37 +08:00
yyforyongyu
f22b25a1bf
discovery+server: add more trace log 2023-03-08 21:02:53 +08:00
Oliver Gugger
a28fbd4690
Merge pull request #7491 from ellemouton/fillInTowerToSessionIDIndex
watchtower/wtdb: add tower-to-session index entry for all towers
2023-03-08 13:17:05 +01:00
Oliver Gugger
ca3debf351
Merge pull request #7483 from ellemouton/fixNoErrorFunc
multi: fix wait.NoError and sub-test names
2023-03-08 10:42:41 +01:00
Elle Mouton
f6ef3db6ea
watchtower/wtdb: add tower-to-session index entry for all towers
In this commit, a small migration is added to the watchtower client DB
to ensure that there is an entry in the towerID-to-sessionID index for
all towers in the db regardless of if they have sessions or not. This is
required as a follow up to migration 1 since that migration only created
entries in the index for towers that had associated sessions which would
lead to "tower not found" errors on start up.
2023-03-08 11:00:40 +02:00
Elle Mouton
7bf4eee685
chainntnfs: fix temp dir creation and rpcpolling switch
In the NewBitcoindBackend test util function, ensure that the
`rpcpolling` param is switched on in the correct order. Also switch back
to using `ioutil.TempDir` as it seems that the zmq conn strings created
from `t.TempDir()` result in an invalid conn string.
2023-03-07 08:45:58 +02:00
Olaoluwa Osuntokun
d26cfd241a
Merge pull request #7485 from Roasbeef/v0-16-0-branch-rc2
build: bump version to v0.16.0-rc2
2023-03-06 12:21:58 -08:00
Olaoluwa Osuntokun
8f4fc29fc1
build: bump version to v0.16.0-rc2 2023-03-06 11:24:37 -08:00
Olaoluwa Osuntokun
4b88020269
Merge pull request #7446 from yyforyongyu/fix-future-msg
discovery: flatten future msg cache and increase its size
2023-03-06 11:21:48 -08:00
Oliver Gugger
54a1661c45
Merge pull request #7451 from CRex15/walletkit+labeltransaction
Add note to LabelTransaction [skip ci]
2023-03-06 18:54:23 +01:00
Elle Mouton
641ae28989
chainntnfs: fix sub test names
Some subtest names were incorrectly labeled by if the txindex was
enabled or not but are meant to be labeled by if rpc polling is enabled
or not.
2023-03-06 13:13:51 +02:00
Elle Mouton
de961af5c6
lntest/wait: handle the case where the pred func hangs
This commit fixes a bug in the wait.NoError function. If the predicate
function, f, passed to the NoError function would hang for the full
timeout, then the `predErr` would remain nil and so a nil error would be
returned from the function. This commit handles that case.
2023-03-06 13:10:43 +02:00
Oliver Gugger
5330b3e414
Merge pull request #7475 from lightningnetwork/dependabot/go_modules/tor/golang.org/x/net-0.7.0
build(deps): bump golang.org/x/net from 0.0.0-20211015210444-4f30a5c0130f to 0.7.0 in /tor
2023-03-03 13:41:19 +01:00
Oliver Gugger
2e9ceb2ceb
Merge pull request #7471 from hieblmi/peer-alias-remove-error
rpc: assign peer alias lookup error string
2023-03-03 11:48:13 +01:00
dependabot[bot]
534535f8db
build(deps): bump golang.org/x/net in /tor
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20211015210444-4f30a5c0130f to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/commits/v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-03 09:15:58 +00:00
Oliver Gugger
c4e0927960
Merge pull request #7453 from lightningnetwork/dependabot/go_modules/healthcheck/golang.org/x/sys-0.1.0
build(deps): bump golang.org/x/sys from 0.0.0-20211216021012-1d35b9e2eb4e to 0.1.0 in /healthcheck
2023-03-03 10:15:29 +01:00
Oliver Gugger
880dfd74d8
Merge pull request #7455 from lightningnetwork/dependabot/go_modules/tor/golang.org/x/sys-0.1.0
build(deps): bump golang.org/x/sys from 0.0.0-20211216021012-1d35b9e2eb4e to 0.1.0 in /tor
2023-03-03 10:15:06 +01:00
Slyghtning
910e3832dc docs: update release notes 2023-03-03 10:07:46 +01:00
Slyghtning
213bdb2e01 rpcserver: assign peer alias lookup error 2023-03-03 10:07:44 +01:00
yyforyongyu
9bc7f0fb21
discovery: make futureMsgs into a struct and test
This commit adds a simple struct `futureMsgCache` that embeds a lru
cache with the message ID. A unit test is added to check the eviction
behaves as expected.
2023-03-03 15:35:08 +08:00
yyforyongyu
78a983c014
discovery: flatten future message cache
This commit removes the slice used when saving future messages into the
cache. Instead, each message is now saved independently into the cache
with a monotonically increasing integer as its ID.
2023-03-03 14:43:06 +08:00
yyforyongyu
52facd3e5a
mod: bump neutrino lru cache version 2023-03-03 14:43:02 +08:00
yyforyongyu
a6abb3c960
discovery: increase allowed max future message size
This commit adds a new const to increase the max future messages allowed
from 100 to 1000, which is needed as during IBD a node with lots of
channels might receive many future messages.
2023-03-03 14:24:13 +08:00
Olaoluwa Osuntokun
251802d796
Merge pull request #7444 from bitromortac/2302-capacity-config
routing: configurable capacity fraction for apriori probability
2023-03-02 18:39:01 -08:00
Oliver Gugger
1136643917
Merge pull request #7469 from yyforyongyu/fix-itest-network-timeout
itest: use unreachable URL in `testNetworkConnectionTimeout`
2023-03-02 09:15:04 +01:00
yyforyongyu
70eede22dc
itest: use unreachable URL in testNetworkConnectionTimeout 2023-03-02 09:42:21 +08:00
Olaoluwa Osuntokun
530988cadf
Merge pull request #7467 from yyforyongyu/rename-lookuphtlc
rpcserver: rename `LookupHtlc` to `LookupHtlcResolution`
2023-03-01 12:05:09 -08:00
yyforyongyu
e3b3fea3ea
docs: update release notes for LookupHtlcResolution 2023-03-01 01:47:08 +08:00
yyforyongyu
c26917ee1f
multi: rename LookupHtlc to LookupHtlcResolution for clarity 2023-03-01 01:47:08 +08:00
CRex15
fd49640256 Add note to LabelTransaction TXID field
The description for TXID in Label Transaction should include a note
that, in the case of GRPC, the TXID needs to be passed in little-endian
(reverse) byte order. A user passing the bytes in big-endian order is
met with an error message stating that the transaction is not found in
the wallet and no other information with which to troubleshoot.
2023-02-28 10:39:47 -05:00
Oliver Gugger
ffef78a4e5
Merge pull request #7462 from guggero/createwatchonly-stateless
remote signer: allow stateless init of watch-only node
2023-02-27 22:36:32 +01:00
Oliver Gugger
610fc0d927
docs: add release notes 2023-02-27 21:59:45 +01:00
Oliver Gugger
04376b3b23
cmd/lncli: add --stateless_init to createwatchonly command 2023-02-27 21:59:45 +01:00
yyforyongyu
2bf84fbe41
lnrpc: update docs on LookupHtlc 2023-02-27 16:59:17 +08:00
yyforyongyu
38063a4720
itest+lntest: add testLookupHTLC 2023-02-27 16:59:16 +08:00
yyforyongyu
38d0ee9291
lnd: don't allow lookup when StoreFinalHtlcResolutions is false 2023-02-27 16:59:16 +08:00
yyforyongyu
86373645b6
lntest: skip logging if there's no error in shutdown 2023-02-27 16:21:54 +08:00
dependabot[bot]
c9a5a0818c
build(deps): bump golang.org/x/sys in /tor
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.0.0-20211216021012-1d35b9e2eb4e to 0.1.0.
- [Release notes](https://github.com/golang/sys/releases)
- [Commits](https://github.com/golang/sys/commits/v0.1.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-25 10:47:32 +00:00
dependabot[bot]
fccfefdb58
build(deps): bump golang.org/x/sys in /healthcheck
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.0.0-20211216021012-1d35b9e2eb4e to 0.1.0.
- [Release notes](https://github.com/golang/sys/releases)
- [Commits](https://github.com/golang/sys/commits/v0.1.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-25 08:08:46 +00:00
Oliver Gugger
d321182220
Merge pull request #7322 from hieblmi/cmd-listchannels-peer-alias
lncli: remote peer alias in `listchannels`
2023-02-24 22:16:43 +01:00
bitromortac
fce88e8b5d
lncli+routerrpc: dynamic capacity fraction config
Enable setting and getting of the apriori capacity fraction in lncli and
in the router rpc.
2023-02-24 15:28:55 +01:00
bitromortac
26d1f427df
routing: trace capacity in probability log 2023-02-24 15:28:55 +01:00
bitromortac
75a9dc9103
routing: limit capacity factor and tune parameters
* The maximal reduction in the probability is limited to 0.5 (previously
  ~0.05), such that we don't get too low apriori probabilities.
  Otherwise, this may lead to a too strong selection of large (and maybe
  expensive) channels. A two-hop path would get total probability
  penalties of:

  - 1000PPM/(0.6*0.6) = 2778 PPM in the unsaturated case
  - 1000PPM/(0.6*(0.6*0.5)) = 5556 PPM in the saturated case, where the
    second hop is saturated

  The difference in PPM of 2778 PPM should be enough to bias towards the
  first path.

* The smearing factor is reduced. Previously we had to keep a higher
  smearing factor in order to make the capacity factor not go to zero
  for high amounts, to still give a fully saturated channel a chance.
  This is not needed anymore due to the capping to 0.5. A lower value of
  the smearing factor lets us more precisely choose a capacity fraction
  and the capacity factor is more neutral when it comes to intermediate
  amounts.

We set a conservative default value for the capacity fraction, which
still has the effect of discarding exhausted channels, giving a
noticeable effect when about 90% of the capacity is being used.
2023-02-24 15:28:55 +01:00
bitromortac
a73581610e
routing+lnrpc: make capacity factor configurable
We make the capacity factor configurable via an lnd.conf routerrpc
apriori parameter. The capacity factor trades off increased success
probability with a reduced set of channel candidates, which may lead to
increased fees. To let users choose whether the factor is active or not,
we add a config setting where a capacity fraction of 1.0 disables the
factor. We limit the capacity fraction to values between 0.75 and 1.0.
Lower values may discard too many channels.
2023-02-24 15:28:55 +01:00
Slyghtning
313983f106 docs: update release notes 2023-02-24 10:49:11 +01:00
Slyghtning
4c198bdfde itest: check peer alias in ListChannels 2023-02-24 10:49:11 +01:00
Slyghtning
3e5943b7f9 rpcserver: enrich ListChannels with peer alias 2023-02-24 10:49:11 +01:00