Commit Graph

13228 Commits

Author SHA1 Message Date
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
Alex Miller
8c4a00853d
github: daily builds use a unique tag 2022-03-10 14:41:24 -05: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
bitromortac
45a2dc80c8
autopilot: implement cached ChannelGraph
Using the cached implementation of a ChannelGraph greatly speeds up the
conversion of the channel database to a SimpleGraph.
2022-03-07 11:15:47 +01:00
bitromortac
52d56a8990
lnrpc+autopilot: add graph diameter calculation
* adds a brute force computation of the diameter
* adds a more efficient calculation of the diameter
2022-03-07 11:15:47 +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
Olaoluwa Osuntokun
791411cdb8
Merge pull request #6237 from sangaman/lncli-state-desc
lncli: update `lncli state` description
2022-03-02 17:08:22 -08:00
Olaoluwa Osuntokun
8b18c6c69d
Merge pull request #6220 from Crypt-iQ/batch_ticker_clamp
config: clamp channel-commit-interval to reasonable time
2022-03-02 17:07:35 -08:00
Olaoluwa Osuntokun
a47da0a990
Merge pull request #6246 from Crypt-iQ/settle_pipeline_check
htlcswitch: only pipeline settle if add is locked-in
2022-03-02 17:07:14 -08:00
Olaoluwa Osuntokun
28389fe38c
Merge pull request #6295 from Roasbeef/strfmt-update
build: update go-pretty v6
2022-03-01 15:03:04 -08:00
Olaoluwa Osuntokun
4a15de05aa
build: update go-pretty v6 [skip ci]
In this commit we update go-pretty to use the latest v6 version of the
library. The existing version we used had a reported vulnerability.
Updating to this newest version also helped to shrink our set of
indirect dependencies.

In the future we can use
https://github.com/lightningnetwork/lnd/pull/5870 to detect/flag these
issues automatically.

Fixes #6293
2022-03-01 15:02:23 -08:00
3np
7865384e85 docker: add git_url build-arg 2022-03-01 14:18:37 +01:00
Andras Banki-Horvath
d28c9000c5
docs: update release notes 0.15.0 2022-02-28 12:03:06 +01:00
Andras Banki-Horvath
bee5e7b761
docs: update etcd docs 2022-02-28 12:03:05 +01:00
Andras Banki-Horvath
1093683b47
etcd: set embedded etcd default max msg size and up txn limit 2022-02-28 12:03:05 +01:00