Commit Graph

12963 Commits

Author SHA1 Message Date
Olaoluwa Osuntokun
e6fd93eb38 Merge pull request #6385 from Roasbeef/tlv-all-day-err-day
lnrpc: remove legacy onion payload as an option for SendToRoute
2022-04-11 20:45:29 -04:00
Olaoluwa Osuntokun
060fcafc19 docs/release-notes: add entry for SendToRoute legacy payload deprecation 2022-04-11 20:30:08 -04:00
Olaoluwa Osuntokun
427a518b0a lnrpc: ignore legacy onion payload as an option for SendToRoute
In this commit, we start to ignore the option to allow the caller to use
the legacy onion payload. The new payload is much more flexible and
efficient, so there's really no reason to still use it, other than for
backwards compatibility tests. Our existing tests that exercise the
legacy feature uses a build tag, which forces nodes to not advertise the
new payload format, which then forces path finding to include the legacy
payload, so we can be confident that route is still being tested.

The existence of this option (which actually makes the TLV payload
opt-in for `SendToRoute` users) makes it harder to remove it from the
protocol all together. With this PR, we take a step forward to allowing
such a change which is being tracked on the spec level at:
https://github.com/lightning/bolts/pull/962.

In a future release, we'll move to remove the field all together.
Ignoring the field today doesn't seem to have any clear downsides, as
most payments always include the MPP payload (due to payment secrets),
so this shouldn't impact users in a significant way.
2022-04-11 20:29:57 -04:00
Olaoluwa Osuntokun
954d5cf896 Merge pull request #6403 from guggero/fix-linter
cmd/lncli: fix linter issues after contributor PR [skip ci]
2022-04-11 12:26:22 -04:00
Oliver Gugger
e13e5f874f cmd/lncli: fix linter issues after contributor PR [skip ci] 2022-04-11 18:02:42 +02:00
Oliver Gugger
65dc3ef8a6 Merge pull request #6349 from gabbyprecious/unlock-error-message#2529
change changepassword and unlock error message
2022-04-11 17:05:33 +02:00
Oliver Gugger
8109c9ccf1 Merge pull request #6392 from C-Otto/fix-typo
rpcperms: fix typo
2022-04-04 23:47:55 +02:00
Carsten Otto
50ec39477e rpcperms: fix typo [skip ci] 2022-04-04 22:58:41 +02:00
gabbyprecious
a0b7680424 cmd/lncli: changepassworderror message [skip ci] 2022-04-01 15:52:59 +02:00
Oliver Gugger
0f858958f9 Merge pull request #6373 from hsjoberg/macos-makefile
mobile: Add macos and apple Makefile tasks
2022-04-01 12:35:57 +02:00
Oliver Gugger
359ef6a821 Merge pull request #6376 from ellemouton/useTCPResolverForAllInterfacesAddr
lncfg: normal TCP resolution for the all-interfaces IP
2022-03-31 14:46:38 +02:00
Hampus Sjöberg
1786fdf4d4 mobile: Add iossimulator gomobile target to ios Makefile task 2022-03-31 12:10:13 +04:00
Elle Mouton
2bf2939b84 go.mod: update btcd to include tor resolver fix 2022-03-31 09:49:09 +02:00
Oliver Gugger
8072b20d54 Merge pull request #6380 from guggero/websocket-proxy-race-fix
lnrpc: fix websocket proxy data race
2022-03-30 18:13:55 +02:00
Oliver Gugger
de9d3096c0 docs: add release notes 2022-03-30 17:03:45 +02:00
Oliver Gugger
40358d406d lnrpc: fix websocket proxy data race
Was discovered in a race unit test in lightning node connect that uses
the websocket proxy to connect to the hashmail server on the client
side.
By not shadowing the err variable we end up reading and writing to the
same variable from two different goroutines, which causes the data race.
2022-03-30 17:03:30 +02:00
Oliver Gugger
6275a78c79 Merge pull request #6379 from guggero/wallet-default-scopes
btcwallet: always make sure default scopes exist
2022-03-30 13:35:59 +02:00
Elle Mouton
c582438a4e lncfg: use net pkg IsLoopback method
Use the IsLoopback method provided by the net package instead of using
hardcoded loopback addresses.
2022-03-30 13:21:50 +02:00
Elle Mouton
c6e96c67ce lncfg: normal TCP resolution for unspecified IPs
Use normal TCP resolution for any unspecified IP (0.0.0.0 or ::) instead
of using the Tor resolver.
2022-03-30 13:21:48 +02:00
Oliver Gugger
ba83c11a6f Merge pull request #6346 from thinkmassive/docker-tag-master
github: re-add rolling tag 'daily-testing-only'
2022-03-30 12:53:37 +02:00
Oliver Gugger
28a99fc2a2 docs: add release notes 2022-03-30 12:50:16 +02:00
Oliver Gugger
485d8f043d btcwallet: always make sure default scopes exist
If new default scopes are added to the underlying btcwallet
implementation, then they aren't automatically created for _existing_
wallets, only for new ones. So on startup we need to make sure all
scopes are present.
2022-03-30 12:50:16 +02:00
Oliver Gugger
5fd9df3b6e Merge pull request #6383 from Roasbeef/update-btcutil-psbt-fix
build: update to latest btcutil/psbt version
2022-03-30 12:41:14 +02:00
Olaoluwa Osuntokun
f8174630d8 build: update to latest btcutil/psbt version
Updates a version of `btcutil/psbt` that has looser parsing requirements
to properly match the BIP.

Fixes: https://github.com/lightningnetwork/lnd/issues/6372
2022-03-29 20:10:54 -05:00
Oliver Gugger
6e2214fd0f Merge pull request #6365 from antonilol/some_typos
fix some typos
2022-03-28 09:23:43 +02:00
Antoni Spaanderman
1516310257 channelarbitrator: fix typo in comment [skip ci] 2022-03-27 15:54:56 +02:00
Hampus Sjöberg
cc21ae1502 Add info about macos and apple Makefile tasks to 0.15.0 release notes 2022-03-27 03:16:00 +04:00
Hampus Sjöberg
a97b194574 mobile: Add apple Makefile task for compiling xcframework for all Apple platforms 2022-03-27 02:33:59 +04:00
Hampus Sjöberg
f015d885e4 mobile: Add macos Makefile task for compiling xcframework for macOS 2022-03-27 02:00:28 +04:00
Hampus Sjöberg
b19f5b9743 Fix error in log message in Makefile ios task 2022-03-27 02:00:28 +04:00
Olaoluwa Osuntokun
dceb10144f Merge pull request #6263 from guggero/schnorr-taproot-signet
Taproot: integrate btcec/v2 and btcwallet changes to support Taproot key spend paths in lnd's wallet
2022-03-25 16:07:56 -07:00
Oliver Gugger
f500892681 docs: add release notes 2022-03-24 18:02:40 +01:00
Oliver Gugger
3b5585c12b multi: fix and test v1 output spend ntfns
Because Taproot key spend only spends don't allow us to re-construct the
spent pkScript from the witness alone, we cannot support registering
spend notifications for v1 pkScripts only. We instead require the
outpoint to be specified. This commit makes it possible to only match by
outpoint and also adds an itest for it.
2022-03-24 18:02:40 +01:00
Oliver Gugger
ef98f2df8a multi: add p2tr tapscript key path signing capabilities 2022-03-24 18:02:39 +01:00
Oliver Gugger
78db46be7e multi: add p2tr tapscript signing capabilities 2022-03-24 18:02:39 +01:00
Oliver Gugger
5109c55721 itest: assert P2TR on-chain fund recovery 2022-03-24 18:02:38 +01:00
Oliver Gugger
108f49f23b input+signer: test wallet script import 2022-03-24 18:02:38 +01:00
Oliver Gugger
c73cf03a55 multi: add p2tr keyspend wallet support 2022-03-24 18:02:38 +01:00
Oliver Gugger
f130eddb92 multi: use prev output fetcher where possible 2022-03-24 18:02:37 +01:00
Oliver Gugger
72c9582b85 multi: bump btcd to taproot aware version 2022-03-24 15:00:25 +01:00
Oliver Gugger
0dcaa511a2 Merge pull request #6341 from guggero/remote-signer-signoutputraw
remote signer: fix SignOutputRaw RPC for incomplete key info, fix healthcheck connection leak
2022-03-24 14:59:38 +01:00
Oliver Gugger
0f4e691d4d docs: add release notes 2022-03-24 14:13:06 +01:00
Oliver Gugger
8c44da225a rpcwallet: fix RPC wallet health check connection leak
Fixes #6329.
This commit fixes a connection leak in the RPC wallet's health check. By
not closing the test connection the watch-only node would slowly stack
up connections and eventually hit the ulimit.
2022-03-24 14:13:06 +01:00
Oliver Gugger
42b0aa9a8e rpcwallet+itest: fix incomplete key info problem
Fixes an issue with SignOutputRaw in remote signing mode where we
weren't able to sign on the remote signer if we only provided the public
key or only the family/index (and not both).

Fixes part of an issue detected in lightninglabs/loop#457.
2022-03-24 14:13:05 +01:00
Oliver Gugger
5bf9b710fc config_builder+rpcwallet: add full net params
As a preparation for parsing addresses, we need the full network
parameters and not just the coin type in the RPC wallet.
2022-03-24 14:13:05 +01:00
Oliver Gugger
efa36ce8f2 lntest+lnwallet: add AddressInfo to WalletController
We need to be able to query the watch-only wallet about a public key
when trying to sign with a key that we don't know the family or index
of. The easiest way to do that is to leverage the wallet's address index
to query the derivation path for a public key.
To give the RPC wallet access to that functionality, we need to expose
the method on the WalletController interface.
2022-03-24 14:13:05 +01:00
Oliver Gugger
e86a0ba197 itest: add new test for SignOutputRaw RPC 2022-03-24 14:13:04 +01:00
Oliver Gugger
e77dd4e2fe Merge pull request #6362 from liviu-ln/fix-forward-interceptor-tests
itest: fix node shutdown in interceptor itests
2022-03-24 10:39:41 +01:00
Oliver Gugger
0f2b3c6926 Merge pull request #6186 from yyforyongyu/itest-fix-pending-ticker
htlcswitch: fix PendingCommitTicker and make it configurable
2022-03-24 09:59:13 +01:00
Oliver Gugger
56c8b63d36 Merge pull request #6348 from gabbyprecious/macaroon-doc-#5444
correct misinformation on default macaroon setup
2022-03-24 09:37:57 +01:00