Commit Graph

12349 Commits

Author SHA1 Message Date
Olaoluwa Osuntokun
11b157705c Merge pull request #5598 from champo/relax_channel_disabled
routing: relax penalties for channel disabled errors
2021-10-25 14:21:36 -07:00
Olaoluwa Osuntokun
60a1f2d8d9 Merge pull request #5874 from Roasbeef/chan-type-feature-bit-fix
lnwire: switch chan_type feature to bits 44/45
2021-10-25 14:19:29 -07:00
Oliver Gugger
8095901924 Merge pull request #5893 from guggero/waddrmgr-update
mod: update btcwallet dependency to fix crash
2021-10-25 15:13:55 +02:00
Oliver Gugger
f045ee5e96 Merge pull request #5881 from alexbosworth/patch-6
lnrpc: log channel point in coop close warning
2021-10-25 11:30:08 +02:00
Oliver Gugger
ad9c160bc9 Merge pull request #5845 from guggero/itest-fixes-rest
itest: fix build matrix, WebSocket test timeout and log file upload
2021-10-25 11:16:20 +02:00
Oliver Gugger
bdf787b248 Merge pull request #5879 from lightningnetwork/go-get-deprecated
lnrpc: migrate `go get` to `go install`
2021-10-25 09:52:42 +02:00
Oliver Gugger
47879d95e8 mod: update btcwallet dependency to fix crash
Fixes #5864.
Updates the btcwallet dependency to the version that fixes the
concurrent map access crash.
2021-10-25 09:50:58 +02:00
Juan Pablo Civile
04c0718401 routing: report success up to the failing node on FailChannelDisabled 2021-10-24 16:53:50 -03:00
Alex Bosworth
262992fbe3 include release note 2021-10-22 13:57:10 -07:00
Alex Bosworth
6a1283cf0b lnrpc: log channel point in coop close warning
Use `Warnf` to include the chanpoint in the warning message instead of printing `%v` to the log
2021-10-22 13:20:55 -07:00
positiveblue
416a96e2c1 lnrpc: migrate deprecated go get to go install
Starting in Go 1.17, installing executables with go get is deprecated.
Migrate our docker file for lnrpc protos.
2021-10-22 09:25:22 -07:00
Oliver Gugger
4e224fe0aa GitHub: fix matrix, package log files before upload
It turns out we were using the wrong matrix variable in the actual
make command and ran the same itest 6 times with no arguments, all
resulting in running the btcd test.

To avoid uploading too many files in individual requests, we zip them
first before uploading the zip itself.
2021-10-21 12:07:15 +02:00
Oliver Gugger
423de4d79a itest: defer close of done channel
The testing framework uses runtime.Goexit() when a test fails which
still allows the defer calls to execute. That's why we should use defer
to close the done channel to allow all goroutines to exit properly.
2021-10-21 11:09:52 +02:00
Olaoluwa Osuntokun
cac8da819f build: update go.mod with latest healthcheck version
We need a tag after the update to the sub-module, as otherwise projects
that depend on lnd (like `lndclient`) are broken.
2021-10-20 18:53:25 -07:00
Olaoluwa Osuntokun
7f656a2550 Merge pull request #5709 from Roasbeef/lease-script-enforce
Introduce new commitment format to enforce channel lease expirations in scripts
healthcheck/v1.2.0
2021-10-20 18:28:40 -07:00
Wilmer Paulino
08d93fd15b docs: add script enforced channel leases text to release notes 2021-10-19 18:30:58 -07:00
Wilmer Paulino
e891dd0fd3 itest: test backup restore of script enforced lease channel type 2021-10-19 18:30:53 -07:00
Wilmer Paulino
0b0dd65c93 chanbackup: support backup restore of script enforced leased channels 2021-10-19 18:30:50 -07:00
Wilmer Paulino
974fc346cf itest: update itests to use new script-enforced lease commitment type
We update several of our integration tests that exercise different
scenarios with regards to the broadcast of a channel commitment
transaction with HTLCs in-flight to use the new commitment type for
channel leases. We do this to ensure we have complete coverage of said
channel commitment type. This required changing several assumptions
throughout the tests based on when we should expect sweeps to happen.
2021-10-19 18:30:48 -07:00
Wilmer Paulino
e15ad026d4 chanacceptor: include commitment type in channel acceptor requests 2021-10-19 18:30:45 -07:00
Wilmer Paulino
c9f6d788e2 lnrpc: add new CommitmentType for script enforced leased channels 2021-10-19 18:30:43 -07:00
Wilmer Paulino
e1c269c7ed sweep: remove previous exclusive group upon re-offered inputs
This aims to cover an edge case and also serves as an optimization of
what happens when an input that was offered to the Sweeper with an
exclusive group is re-offered without one. This happens every time we
attempt to sweep the different possible anchors of a channel at the time
of broadcast, as we don't know which commitment transaction will end up
confirming in the chain. Once the commitment transaction confirms
however, we know which anchor output to act upon and re-offer it to the
Sweeper without an exclusive group. At this point, the Sweeper will
continue to attempt sweeping the other anchor output versions even know
we know they are not valid.
2021-10-19 18:30:40 -07:00
Wilmer Paulino
5faf3dc03b contractcourt: handle sweeping script-enforced leased channel outputs
In order to sweep the commitment and HTLC outputs belonging to a
script-enforced leased channel, each resolver must know whether the
additional CLTV clause on the channel initiator applies to them. To do
so, we retrieve the historical channel state stored within the database
and supplement it to the resolvers to provide them with what's needed in
order to sweep the necessary outputs and resolve their respective
contracts.
2021-10-19 18:30:37 -07:00
Wilmer Paulino
2f27fa370b input: add new constructor to support CSV and CLTV locked inputs 2021-10-19 18:30:35 -07:00
Wilmer Paulino
8cfb53f64a lnwallet: support transactions and scripts for new commitment type
This commit modifies the channel state machine to be able to derive the
proper commitment and second-level HTLC output scripts required by the
new script-enforced leased channel commitment type.
2021-10-19 18:30:32 -07:00
Wilmer Paulino
01e9bb2bff lnwallet: coalesce different supported output scripts into single method 2021-10-19 18:30:30 -07:00
Wilmer Paulino
652f841738 input: add witness gen and weight estimates for new commitment type
This witness generators and weight estimates added only apply for the
new script-enforced leased channel commitment type.
2021-10-19 18:30:27 -07:00
Wilmer Paulino
b84307e62e input: add scripts for new script enforced lease commitment type
The new commitment type consists of adding an additional CLTV
requirement to guarantee a leased channel's expiration on any commitment
and HTLC outputs that pay directly to the channel initiator.
2021-10-19 18:30:24 -07:00
Wilmer Paulino
564ec0fd9b funding+lnwallet: support funding new script enforced leased channels 2021-10-19 18:30:22 -07:00
Wilmer Paulino
f38c6d6662 channeldb: add new ChannelType bit for script enforced leased channels 2021-10-19 18:30:19 -07:00
Wilmer Paulino
6252563bc5 lnwire: add LeaseExpiry custom record for Open+AcceptChannel 2021-10-19 18:30:17 -07:00
Wilmer Paulino
6052a446dc lnwire+feature: add feature bit for script enforced lease support 2021-10-19 18:30:14 -07:00
Wilmer Paulino
35fd985118 lncfg: add protocol config option for script enforced lease support 2021-10-19 18:30:12 -07:00
Olaoluwa Osuntokun
287871401a docs/release-notes: add section for propr chan type feature bit 2021-10-19 18:25:58 -07:00
Olaoluwa Osuntokun
028fc86e5c lnwire: switch chan_type feature to bits 44/45
We were using an older feature bit that was just "selected". This commit
has us use the feature bit officially included in the spec.

See https://github.com/lightningnetwork/lightning-rfc/pull/906
2021-10-19 17:40:33 -07:00
Olaoluwa Osuntokun
e590abc7be Merge pull request #5813 from naveensrinivasan/naveen/feat/kvdv-1.16
Upgrade to go 1.16 for the left over packages
2021-10-19 16:40:47 -07:00
Olaoluwa Osuntokun
290b78e700 Merge pull request #5512 from carlaKC/5468-amountawarehint
routing: include htlc amount in bandwidth hint queries
2021-10-19 16:31:10 -07:00
carla
721ef7d367 release-notes: add amount sensitive bandwidth hints 2021-10-19 09:52:19 +02:00
carla
990dda4b18 multi: thread bandwidth check amount down to MayAddOutgoingHtlc
Pass htlc amount down to the channel so that we don't need to rely
on minHtlc (and pad it when the channel sets a 0 min htlc). Update
test to just check some sane values since we're no longer relying
on minHtlc amount at all.
2021-10-19 09:50:51 +02:00
carla
45de686d35 multi: move bandwidth hints behind interface 2021-10-19 09:50:49 +02:00
naveen
06433d351e Upgrade to go 1.16 for the left over packages
Upgraded the go to 1.16 for the rest of the packages.
2021-10-19 03:55:13 +00:00
Olaoluwa Osuntokun
e6c65f1cbd Merge pull request #5346 from joostjager/custom-messages
lnrpc+peer: custom peer messages
2021-10-18 19:07:39 -07:00
Olaoluwa Osuntokun
94b7b71809 Merge pull request #5689 from guggero/remote-signer
Support remote signing over RPC
2021-10-18 18:39:17 -07:00
Joost Jager
ade50d0b2c lnrpc: receive custom message 2021-10-15 17:08:55 +02:00
Joost Jager
ae959b16ae lnrpc: send custom message 2021-10-15 17:08:53 +02:00
Oliver Gugger
d43854aa34 docs: add remote signing documentation and release notes cert/v1.1.0 healthcheck/v1.1.0 kvdb/v1.2.0 queue/v1.1.0 ticker/v1.1.0 clock/v1.1.0 2021-10-14 16:14:50 +02:00
Oliver Gugger
a6ea019f56 lntest: add itest for remote signing 2021-10-14 16:14:49 +02:00
Oliver Gugger
36dc4b3abf itest: refactor tests to be re-used 2021-10-14 15:42:59 +02:00
Oliver Gugger
78b700387c cmd/lncli+walletrpc: add createwatchonly command 2021-10-14 15:42:58 +02:00
Oliver Gugger
1541b2ef1b multi: create and list all default internal accounts 2021-10-14 15:42:56 +02:00