Commit Graph
100 Commits
Author SHA1 Message Date
Oliver Gugger 044286ae2c Merge pull request #6024 from lightningriders/timepref
routing: add time preference parameter
2022-04-13 22:17:02 +02:00
Oliver Gugger f37ebb68ea docs: add release notes 2022-04-13 14:01:59 +02:00
Oliver Gugger 70c01e5bf1 mod: bump btcwallet to p2tr unused addr fix 2022-04-13 14:01:59 +02:00
Oliver Gugger 4bdc3c9a5b Merge pull request #6407 from guggero/multi-fixes
signrpc: fix panic with missing UTXO information when signing Taproot output
2022-04-12 19:43:51 +02:00
Oliver Gugger 9281e7a692 docs: add release notes 2022-04-12 19:30:13 +02:00
Oliver Gugger 1e72d6737d lnrpc+itest: fix panic with missing UTXO info
Fixes #6396.
This commit fixes a panic that occurred when trying to sign for a
Taproot output without specifying the full UTXO information for each
input. Instead of panicking an error is now returned.
2022-04-12 19:30:12 +02:00
Oliver Gugger 2a069b8b4e rpcserver: copy success variable of channel close update
Seems this was forgotten in a refactor a while back.
2022-04-12 19:30:11 +02:00
Oliver Gugger 1ad667908e Merge pull request #6393 from hitanshu-mehta/fix-typo
Docs: fix typos in sample-lnd.conf and chanfitness/chanevent.go
2022-04-12 18:34:44 +02:00
Oliver Gugger 8047f2388e Merge pull request #6212 from bottlepay/interceptor-check
htlcswitch: interceptor expiry check
2022-04-12 09:55:55 +02: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
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
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
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
Oliver Gugger 6e2214fd0f Merge pull request #6365 from antonilol/some_typos
fix some typos
2022-03-28 09:23:43 +02: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
Oliver Gugger 1670000fd8 walletrpc: add debug log statement for invalid PSBT
To help debug remote signing issues, it's helpful to get the raw PSBT
that failed to be parsed. This is necessary since serializing an invalid
PSBT is allowed and the checks only fail when trying to de-serialize
such an invalid packet.
2022-03-24 09:28:27 +01:00
Oliver Gugger c0a282bc4a Merge pull request #6353 from bhandras/interceptor-race-fix
switch+test: fix race condition in the interceptor unit test
2022-03-23 18:16:13 +01:00
Oliver Gugger ba99d22f3c docs: update release notes 2022-03-23 17:46:58 +01:00
Oliver Gugger 1dc2a394e6 lnd: disable REST proxy HTTP method fallback
It turns out that when a REST call to an endpoint (in this specific
example /v1/payments, which for GET returns all payments but for DELETE
removes all payments) is made with POST instead of the correct
registered method, the grpc-gateway tried to find a fallback method.
That resulted in randomly choosing between any of the calls with the
same URI pattern.
This is of course catasrophic if the user attempts to query the list of
payments (but using POST instead of GET by accident) and then ending up
calling the DELETE endpoint instead.
2022-03-23 17:40:35 +01:00
Oliver Gugger 802544b62a Merge pull request #5476 from LN-Zap/upstream/feat/dest-outputs
lnrpc: Add destination output information (pkScript, output index, amount and if output belongs to the node)
2022-03-23 12:51:04 +01:00
Oliver Gugger 929a5654ee Merge pull request #6356 from guggero/remove-healthcheck-replace
go module cleanup [3/3]: remove local replace for healthcheck module
2022-03-22 16:34:34 +01:00
Oliver Gugger 58a47845c1 docs: update release notes 2022-03-22 14:48:43 +01:00
Oliver Gugger 9ecc439266 mod: remove local replace for healthcheck module
With the new healthcheck/v1.2.2 tag pushed, we can finally remove the
local replace directive.
2022-03-22 14:46:19 +01:00
Oliver Gugger db4831ab69 Merge pull request #6355 from guggero/remove-tags
go module cleanup [2/3]: remove local replace for `tor` package
2022-03-22 14:41:56 +01:00
Oliver Gugger bdda2aa059 docs+github+scripts: remove submodule update check
Because we want to avoid local replace directives (as they make it easy
to screw up things for external applications that use lnd as a library
without us noticing), we're going to switch over to a new process.
See section "Use of Golang submodules" in the code contribution
guideline.
2022-03-22 14:17:26 +01:00
Oliver Gugger 2b34c1e7ed mod+healthcheck: remove local replace directive 2022-03-22 14:06:05 +01:00
Oliver Gugger a14f1208d7 Merge pull request #6350 from guggero/tor-gomodule
mod: turn tor into its own submodule
2022-03-22 14:01:45 +01:00
Oliver Gugger e8528b060a build: bump version of master branch to v0.14.99-beta 2022-03-21 20:41:42 +01:00
Oliver Gugger 3ee8d25a29 docs: add release notes 2022-03-21 20:41:41 +01:00
Oliver Gugger 5116cfc255 mod: bump aez library that points to GitLab
The newest version of aez points directly to
gitlab.com/yawning/bsaes.git instead of the unreachable
git.schwanenlied.me/yawning/bsaes.git that required the replace
directive.
2022-03-21 20:41:40 +01:00
Oliver Gugger 973c95369f mod: remove local replaces 2022-03-21 20:41:38 +01:00
Oliver Gugger 1b48681bba mod: remove replace for github.com/onsi/ginkgo
With the recent PR #6285 merged that bumped the btcd dependency, we no
longer need to bump the github.com/onsi/ginkgo package with a replace
directive. Instead it was bumped indirectly by merging
https://github.com/btcsuite/btcd/pull/1780 which is included in the btcd
version we reference.
2022-03-21 20:41:37 +01:00
Oliver Gugger fddcb6669c mod: remove replace for go.mongodb.org/mongo-driver
With the dependency to lnd@v0.14.2-beta removed, we no longer depend on
the mongo-driver indirectly so we can remove the security related
replace directive.
2022-03-21 20:41:36 +01:00
Oliver Gugger fa919781e2 mod+healthcheck: use new tor submodule
Using the tor module instead of whole lnd in healthcheck allows us to
get rid of a lot of indirect dependencies.
2022-03-21 20:41:34 +01:00
Oliver Gugger c5f3110616 tor: make tor its own submodule 2022-03-21 20:41:33 +01:00
Oliver Gugger 57840bba36 Merge pull request #6232 from bottlepay/require-interceptor
htlcswitch: add an always on mode to htlc interceptor
2022-03-19 10:47:22 +01:00
Oliver Gugger d287884ff4 Merge pull request #6332 from bhandras/invoice_registry_deadlock
invoices: fix deadlock in invoice registry
2022-03-17 15:55:08 +01:00
Oliver Gugger 6c80a30da2 Merge pull request #6278 from Crypt-iQ/network_ann_refactor
discovery: refactor processNetworkAnnouncement into smaller functions
2022-03-16 11:23:46 +01:00
Oliver Gugger 95c270d1f8 Merge pull request #6217 from liviu-ln/psbt-finalize-check
walletrpc: return an error when finalizing an already complete PSBT
2022-03-14 10:45:24 +01:00
Oliver Gugger 41b91bd5be Merge pull request #6314 from yyforyongyu/fix-sig-len
lnwire: add length validation in NewSigFromRawSignature
2022-03-11 09:44:11 +01:00
Oliver Gugger 262591c333 Merge pull request #6285 from guggero/btcec-v2-upgrade
Bump btcec to v2, use integrated btcutil module
2022-03-09 19:55:10 +01:00
Oliver Gugger e84c7fb71c docs: add release notes 2022-03-09 19:05:44 +01:00
Oliver Gugger 4554c306fa mod: bump submodules after changes to them 2022-03-09 19:05:44 +01:00
Oliver Gugger 7dfe4018ce multi: use btcd's btcec/v2 and btcutil modules
This commit was previously split into the following parts to ease
review:
 - 2d746f68: replace imports
 - 4008f0fd: use ecdsa.Signature
 - 849e33d1: remove btcec.S256()
 - b8f6ebbd: use v2 library correctly
 - fa80bca9: bump go modules
2022-03-09 19:02:37 +01:00
Oliver Gugger 8ee9fc837b Merge pull request #6136 from bhandras/forall_etcd
etcd: add ForAll to speed up graph operations
2022-03-07 16:44:43 +01:00
Oliver Gugger 1d3d70b0ab Merge pull request #6066 from bitromortac/2111-graph-diameter
autopilot+lnrpc: add graph diameter calculation to getnetworkinfo
2022-03-07 14:18:36 +01:00
Oliver Gugger 72aec1722b Merge pull request #6300 from 3nprob/docker-custom-source
docker: add git_url build-arg
2022-03-05 11:42:41 +01:00
Oliver Gugger e7505c3e6b Merge pull request #6284 from guggero/tlv-1.0.1
mod: bump tlv version to v1.0.1 [skip ci]
2022-02-22 09:16:39 +01:00
Oliver Gugger 0db2c6a244 Merge pull request #6289 from yyforyongyu/fix-fee-service-panic
itest: check feeService against nil upon shutdown [skip ci]
2022-02-22 09:12:19 +01:00
Oliver Gugger b4b524903c mod: bump tlv version to v1.0.1 [skip ci]
Apparently we already pushed a tag named tlv/v1.0.0 a while ago (which
points to a commit not in master)...
We need to bump the version of the tag to v1.0.1 since we cannot replace
old tags (without causing a lot of caching problems).
2022-02-21 15:30:07 +01:00
Oliver Gugger 4df7dbdc58 Merge pull request #6283 from guggero/tlv-module
mod+tlv: refactor tlv package into its own submodule
2022-02-21 15:24:52 +01:00
Oliver Gugger d9b657ccb6 docs: update release notes 2022-02-21 13:49:30 +01:00
Oliver Gugger 96b960455f mod+tlv: make tlv its own submodule 2022-02-21 13:49:30 +01:00
Oliver Gugger 67f5957c5e tlv+watchtower: move bench test
The benchmark tests import both the tlv and watchtower packages. To make
it possible to extract the tlv package into its own submodule, this test
is better located in the watchtower package.
2022-02-21 13:48:31 +01:00
Oliver Gugger 3ed8b90c21 Merge pull request #6280 from guggero/remove-halseth
Remove expired or soon to expire PGP keys from signing script
2022-02-21 12:54:30 +01:00
Oliver Gugger a6282ab08e scripts: remove expiring key for cfromknecht [skip ci]
The user cfromknecht isn't an active contributor anymore and the key
will expire in less than two weeks.
2022-02-21 10:26:48 +01:00
Oliver Gugger d46e9d2d29 scripts: remove expired key for halseth
Fixes #6272.
The user halseth isn't an active contributor anymore and the key
expired.
2022-02-21 10:21:54 +01:00
Oliver Gugger 0aa0831619 Merge pull request #6270 from guggero/enable-whitespace-linter
ci: enable whitespace linter
2022-02-15 18:21:04 +01:00
Oliver Gugger eb366a64e6 docs: add release notes 2022-02-15 18:13:03 +01:00
Oliver Gugger 13f187046b multi: fix issues reported by whitespace linter 2022-02-15 16:26:08 +01:00
Oliver Gugger 8d83778314 tools+golangci-lint: enable fixed version of whitespace linter 2022-02-15 11:16:19 +01:00
Oliver Gugger 2891dc7399 Merge pull request #6248 from guggero/lint-dockerize
make+tools: dockerize linting [skip ci]
2022-02-11 10:10:56 +01:00
Oliver Gugger 09406f613a make+tools: dockerize linting 2022-02-10 16:03:00 +01:00
Oliver Gugger 28ea2736a0 Merge pull request #6244 from guggero/linter-upgrade
Move tools dependencies into submodule, upgrade `golangci-lint`
2022-02-10 15:11:20 +01:00
Oliver Gugger 67eae60bcc docs: add release notes 2022-02-10 11:04:54 +01:00
Oliver Gugger 895a2e497b multi: formatting and comment fixes 2022-02-10 11:02:02 +01:00
Oliver Gugger ffee7d1bcf multi: fix newly detected linter issues 2022-02-10 11:02:02 +01:00
Oliver Gugger 369627901f lint+tools: bump version of golangci-lint 2022-02-10 11:02:01 +01:00
Oliver Gugger dfdc2bff8b multi: run gosimports 2022-02-10 11:02:01 +01:00
Oliver Gugger d1b512ff92 mod+make: replace goimports with gosimports 2022-02-10 11:02:00 +01:00
Oliver Gugger 3107c807a9 Merge pull request #6239 from BTCparadigm/UpdateLicenses
multi: Update licenses to 2022 [skip ci]
2022-02-09 14:31:45 +01:00
Oliver Gugger 0bef42e93c Merge pull request #6233 from guggero/sign-psbt-utxo-error-message
rpcwallet: disallow empty UTXO pk script [skip ci]
2022-02-08 09:39:09 +01:00
Oliver Gugger 75016a176c rpcwallet: disallow empty UTXO pk script [skip ci]
If we're signing for an UTXO that isn't known to the wallet, then the
UTXO's pk script _must_ be set in the sign descriptor. Otherwise we run
into a generic PSBT serialization error when running in a remote signing
setup.
2022-02-03 17:34:14 +01:00