Commit graph

12897 commits

Author SHA1 Message Date
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
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
Olaoluwa Osuntokun
4ecd153be2
lnrpc: add new locked balance field for WalletBalance
In this commit, we add a new field to the WalletBalance call that
permits users to account for the set of outputs that may be locked due
to a pending transaction. Without this field any time users locked
outputs for things like PSBT signing, then they disappear from the
WalletBalance call, which may cause a panic.
2022-03-17 16:36:44 -07:00
Joost Jager
ae314ec794
htlcswitch: add an always on mode to interceptable switch
Co-authored-by: Juan Pablo Civile <elementohb@gmail.com>
2022-03-17 17:39:37 +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
Olaoluwa Osuntokun
f13399bc49
Merge pull request #6190 from ErikEk/listunspent-deafult-values
walletrpc: add default values to listunspent
2022-03-16 16:16:45 -07: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
eugene
d44d92e4dc
release-notes: update release notes for 0.15.0 2022-03-15 14:35:28 -04:00
eugene
932c5f1a7b
discovery: move ann sig handling to handleAnnSig 2022-03-15 14:35:27 -04:00
eugene
1e9220dab6
discovery: move channel update handling to handleChanUpdate 2022-03-15 14:35:27 -04:00
eugene
914c96d2cf
discovery: move channel ann handling to handleChanAnnouncement 2022-03-15 14:35:27 -04:00
eugene
3bdf0a437d
discovery: move node ann code to handleNodeAnnouncement 2022-03-15 14:35:25 -04:00
Joost Jager
169f0c0bf4
routerrpc+htlcswitch: move intercepted htlc tracking to switch
In this commit we move the tracking of the outstanding intercepted htlcs
to InterceptableSwitch. This is a preparation for making the htlc
interceptor required.

Required interception involves tracking outstanding htlcs across
multiple grpc client sessions. The per-session routerrpc
forwardInterceptor object is therefore no longer the best place for
that.
2022-03-15 08:44:57 +01:00
Andras Banki-Horvath
95d8fd8007
docs: update release notes 0.15.0 2022-03-14 15:16:01 +01:00
Andras Banki-Horvath
c548a70e0d
invoices: fix deadlock in invoice registry 2022-03-14 15:15:58 +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
yyforyongyu
74c44da315
docs: update release notes for sig length check 2022-03-11 12:31:51 +08:00
yyforyongyu
0e242bae82
netann: create testSigBytes for unit test 2022-03-11 12:31:51 +08:00
yyforyongyu
19b2236570
lnwire: add length validation in NewSigFromRawSignature 2022-03-11 12:31:49 +08:00
Olaoluwa Osuntokun
1eefa2863c
Merge pull request #6325 from thinkmassive/daily-build-tag
github: daily builds use a unique tag
2022-03-10 16:04:30 -08:00