Commit Graph

13066 Commits

Author SHA1 Message Date
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
Liviu
b5036d08dd docs: update release notes 0.15.0 2022-03-23 22:15:13 -07:00
Liviu
57cb9d09da itest: fix node shutdown in interceptor itests 2022-03-23 19:45:45 -07:00
yyforyongyu
54ea71bd0a
docs: add release note for PendingCommitTicker 2022-03-24 10:02:00 +08:00
yyforyongyu
1c8c0b4fa0
multi: make PendingCommitInterval configurable 2022-03-24 10:01:42 +08:00
yyforyongyu
13ade7e9ce
htlcswitch+lnwallet: add trace logs for tickers 2022-03-24 10:01:41 +08:00
Olaoluwa Osuntokun
bd5e29ec83
Merge pull request #6359 from guggero/fix-rest-proxy-fallback
lnd: disable REST proxy HTTP method fallback
2022-03-23 16:28:41 -07:00
Olaoluwa Osuntokun
3fce8e7501
Merge pull request #6358 from Crypt-iQ/amp_state_decoder
channeldb: change to ErrTypeForDecodingErr for amp state
2022-03-23 16:10:38 -07:00
gabbyprecious
fcc6fd267c docs: change docs for macaroon creation [skip ci] 2022-03-23 21:46:12 +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
eugene
4373faa818
channeldb: change to ErrTypeForDecodingErr for amp state
Was instead returning ErrTypeForEncodingErr.
2022-03-23 12:05:11 -04:00
Andras Banki-Horvath
64ea883105
switch+test: fix race condition in unit test 2022-03-23 13:26:15 +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
Bjarne Magnussen
b4ba8c52fb
docs: update release notes 2022-03-23 11:32:37 +01:00
Bjarne Magnussen
052bb9d711
lnwallet: remove DestAddresses from lnwallet
With `OutputDetail` now containing the destination addresses, the `DestAddresses` field can be removed from the `lnwallet.TransactionDetail`. It is already populated when needed for backwards compatibility to `lnrpc.TransactionDetail` via `OutputDetail.Addresses`.
2022-03-23 11:29:09 +01:00
Bjarne Magnussen
48c773ec87
lnrpc: add DestOutput information to RPC GetTransactions 2022-03-23 11:29:09 +01:00
Bjarne Magnussen
188b39268d
lnrpc: add DestOutput to the protobuf 2022-03-23 11:29:09 +01:00
Bjarne Magnussen
d43cdcf9a0
btcwallet: populate data to DestOutput field
Adds the output script and amount to the `DestOutput` field of `TransactionDetails`, as well as sets the flag `isOurAddress` if the output is controlled by the node's wallet.
2022-03-23 11:28:18 +01:00
Bjarne Magnussen
cbf6bd9aca
lnwallet: add new DestOutputs field to TransactionDetail
A new `DestOutputs` field contains additional information on destinations of a transaction described with the `TransactionDetail` structure.

The additional information inside `DestOuputs` denote the output script and amount, as well as a flag `IsOurAddress` if the address is controlled by the node's wallet.
2022-03-23 11:28:18 +01:00
Olaoluwa Osuntokun
42ca9b171e
Merge pull request #6342 from bhandras/leader_election_ttl
cluster: configurable session TTL for the leader elector
2022-03-22 18:47:17 -07:00
Alex Miller
fcaa2a93d2
github: re-add rolling 'daily-testing-only' tag [skip ci]
This commit re-adds the rolling `daily-testing-only` tag in addition to
the unique daily tag `daily-<YYYYmmdd>`.

A rolling `master` build was proposed but declined because this would
put an unnecessary burden on the build system (each run takes ~45 min)
2022-03-22 14:12:56 -04: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
Andras Banki-Horvath
31cb876301
docs: update release notes 0.15.0 2022-03-22 14:20:40 +01:00
Andras Banki-Horvath
0e4d7cf143
itest: make use of session ttl in failover test 2022-03-22 14:20:40 +01:00
Andras Banki-Horvath
7c8093ad1a
config: update sample-lnd.conf 2022-03-22 14:20:40 +01:00
Andras Banki-Horvath
8eca46f142
cluster: configurable session TTL for the leader elector 2022-03-22 14:20:36 +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
Olaoluwa Osuntokun
3a040174aa
Merge pull request #6274 from Roasbeef/anchor-utxos-unconf
lnrpc+sweep: properly remove any unconfirmed descendant chains a to-be-swept input is spent
2022-03-17 16:47:55 -07:00
Olaoluwa Osuntokun
d16430792e
docs/release-notes: add entry for 3rd party anchor sweep fix 2022-03-17 16:36:54 -07:00
Olaoluwa Osuntokun
e5625878e9
lntest/itest: add new itest for 3rd party anchor spends
In this commit, we add a new integration tests to exercise the fix
introduced in the prior commit. In this test, we reconstruct a scenario
for a 3rd party to sweep an anchor spend after force closing, causing a
prior spend we had to be invalidated. Without the prior commit, this test
fails as the original anchor sweep is still found in the wallet.
2022-03-17 16:36:49 -07:00
Olaoluwa Osuntokun
e1e9de24df
sweep: remove all unconfirmed descendant transactions when a sweep conflicts
Before this commit, we we were trying to sweep an anchor output, and
that output was spent by someone else (not the sweeper), then we would
report this back to the original resolver (allowing it to be cleaned
up), and also remove the set of inputs spent by that transaction from
the set we need to sweep.

However, it's possible that if a user is spending unconfirmed outputs,
then the wallet is holding onto an invalid transaction, as the outputs
that were used as inputs have been double spent elsewhere.

In this commit, we fix this issue by recursively removing all descendant
transactions of our past sweeps that have an intersecting input set as
the spending transaction. In cases where a user spent an unconfirmed
output to funding a channel, and that output was a descendant of the now
swept anchor output, the funds will now properly be marked as available.

Fixes #6241
2022-03-17 16:36:47 -07:00