Commit Graph

11486 Commits

Author SHA1 Message Date
eugene
f6524aabcb lnd+funding: use funding.WriteOutpoint instead of lnd version
This commit duplicates the utxonursery's writeOutpoint function
in the funding package so that when the rest of the fundingmanager
code is moved, it can use the WriteOutpoint function for its
channel opening state data.
2020-12-17 09:36:34 -05:00
eugene
61e0f67edf funding: rename from fmgr, change references 2020-12-17 09:36:34 -05:00
Olaoluwa Osuntokun
cc17dd5804 Merge pull request #4869 from bhandras/etcd_namespaces
etcd: add support for namespaces
2020-12-16 19:18:41 -08:00
Andras Banki-Horvath
5ee0d77414 build: extend sample-lnd.conf with the new etcd namespace 2020-12-16 18:34:41 +01:00
Andras Banki-Horvath
4a6af67241 etcd: add support for namespaces
This commit adds support for etcd namespaces. This is useful when
using a shared etcd database where separate users have access to
separate namespaces.
2020-12-16 18:25:38 +01:00
Olaoluwa Osuntokun
f9641cdc64 build: bump version to v0.12.0-beta.rc1 v0.12.0-beta.rc1 2020-12-15 14:30:36 -08:00
Olaoluwa Osuntokun
d2d87c7b24 Merge pull request #4837 from carlaKC/workflows-pindeps
github: add workflow that allows us to pin dependencies
2020-12-15 14:28:39 -08:00
Olaoluwa Osuntokun
0a171a9e5f Merge pull request #4867 from guggero/wallet-drop-fix
lnd+walletunlocker: move wallet DB history drop to unlocker
2020-12-15 14:25:58 -08:00
Olaoluwa Osuntokun
63055eecd3 Merge pull request #4855 from halseth/anchors-clamp-max-feerate
multi: cap anchors feerate at configurable maximum
2020-12-15 14:25:15 -08:00
Oliver Gugger
03a21367d3 lnd+walletunlocker: move history drop to unlocker
Apparently dropping the wallet transaction history only fully takes
effect after opening the wallet from scratch again. To do this cleanly,
we need to do it in the unlocker instead of lnd.
2020-12-15 21:34:12 +01:00
Oliver Gugger
0c6cc71f86 walletunlocker: use noFreeListSync param 2020-12-15 21:21:29 +01:00
carla
d7e2fddb75 github: add workflow that allows us to pin dependencies
This commit adds a workflow that pins certain dependencies in go.mod
that we do not want to bump.
2020-12-15 21:17:11 +02:00
carla
d8978c6109 go.sum: cleanup unused entries
go mod tidy does not always remove unused entries (known issue for
gomod). This commit cleans up the entries we don't need.
2020-12-15 21:17:04 +02:00
Johan T. Halseth
413ece2ccc itest: account for capped anchor commit fee rate in balance calc 2020-12-15 19:54:50 +01:00
Johan T. Halseth
99bbd992d2 sample config: add no-anchors and max-commit-fee-rate-anchors 2020-12-15 19:54:50 +01:00
Johan T. Halseth
0fd76e53b8 multi: cap anchors feerate at configurable maximum
This commit caps the update fee the initiator will send when the anchors
channel type is used. We do not limit anything on the receiver side.

10 sat/vbyte is the current default max fee rate we use. This should be
enough to ensure propagation before anchoring down the commitment
transaction.
2020-12-15 19:54:50 +01:00
Olaoluwa Osuntokun
d289a6ff78 Merge pull request #4840 from halseth/anchors-zero-fee-secondlevel
[anchors] zero-fee HTLC secondlevel transactions
2020-12-15 10:52:03 -08:00
Johan T. Halseth
64659e6156 protocol+rpctest: disable anchors by default for itests 2020-12-15 10:13:28 +01:00
Johan T. Halseth
d69a1a616d sample config: add no-anchors 2020-12-15 10:13:27 +01:00
Johan T. Halseth
c92c06400b config+protocol: enable anchor commitments (zero-fee HTLC ) by default 2020-12-15 10:13:25 +01:00
Johan T. Halseth
1923d40843 lnwallet+funding: enable AnchorsZeroFeeHtlcTx commit type if both nodes support
We assume the legacy anchor type is no longer advertised by us.
2020-12-15 10:13:18 +01:00
Johan T. Halseth
0b9bec7804 chanrestore: define ZeroHtlcTxFeeCommitVersion 2020-12-15 10:13:12 +01:00
Johan T. Halseth
d5cd9861d2 channeldb+lnwallet: define zero-fee channel type 2020-12-15 10:13:07 +01:00
Johan T. Halseth
abefa93065 lnwire+feature: define AnchorsZeroFeeHtlcTx feature 2020-12-15 10:13:04 +01:00
Olaoluwa Osuntokun
f8dda6f0ee Merge pull request #4865 from guggero/restore-logic-fix
chanrestore: flip case logic for old backup logic
2020-12-14 16:29:02 -08:00
Oliver Gugger
693d0f61b7 chanrestore: flip case logic
If a channel backup from an old node is restored and a channel contained
within that file was unconfirmed at the time of the backup, the whole
channel short ID is 0:0:0. Unfortunately we got stuck in just the first
case and didn't fall through to the second one. To avoid that, we flip
the case logic because for the second case, the block height in the
short channel ID cannot be zero.
2020-12-14 21:59:49 +01:00
Olaoluwa Osuntokun
90a45fe2cf Merge pull request #4861 from guggero/go-version-update
GitHub+Travis+docker: update golang patch version to 1.15.6 everywhere
2020-12-14 12:31:35 -08:00
Oliver Gugger
91ed4d811e GitHub+Travis: update to latest golang patch version 2020-12-12 11:26:00 +01:00
Oliver Gugger
e68c0bf18f docker: update to latest golang base image 2020-12-12 11:25:22 +01:00
Oliver Gugger
71c19b480d Merge pull request #4797 from Crypt-iQ/zpay32_fflags
make: add zpay32 to fuzz_flags.mk
2020-12-12 11:14:59 +01:00
Conner Fromknecht
4af24158c4 Merge pull request #4779 from halseth/anchor-htlc-aggregation
[anchors] HTLC second level aggregation in the sweeper
2020-12-11 16:22:17 -08:00
Olaoluwa Osuntokun
04e02a57ca Merge pull request #4852 from guggero/docker-arm
GitHub: specify docker image platforms to enable ARM image builds
2020-12-11 14:30:18 -08:00
Olaoluwa Osuntokun
a623979e8f Merge pull request #4856 from cfromknecht/lowscrypt-race
make: use low-scrypt + parallelization to speed up  unit-race
2020-12-11 14:29:17 -08:00
Olaoluwa Osuntokun
7c848baa52 Merge pull request #4858 from lightningnetwork/update-go-version-actions
actions: update to GO_VERSION 1.15.6
2020-12-11 14:28:01 -08:00
Olaoluwa Osuntokun
9554ea8d74 Merge pull request #4859 from guggero/neutrino-err-fix
itest: add neutrino errors to whitelist
2020-12-11 14:26:41 -08:00
Oliver Gugger
094545a300 itest: add neutrino errors to whitelist 2020-12-11 08:55:45 +01:00
Oliver Gugger
a2d4998962 GitHub: specify docker image platforms
To enable building docker images for ARM64 platforms as well,
we just need to specify the desired target platforms and the Docker
Buildx service will do the job for us (provided the base images support
the given platforms, which is the case for golang).
2020-12-11 08:51:33 +01:00
Conner Fromknecht
c2c520e431 make: pass dev tag to go-acc
Previously we were excluding non-dev test files from our coverage
report, which included interface_test.go as well as the bitcoindnotify
and btcdnotify dev tests.
2020-12-10 22:09:31 -08:00
Conner Fromknecht
ea8d02eb68 chainntnfs/test: parallelize iface tests by backend 2020-12-10 20:56:10 -08:00
Conner Fromknecht
24da512d1e actions: update to GO_VERSION 1.15.6 2020-12-10 20:41:57 -08:00
Conner Fromknecht
d870bb5002 Merge pull request #4804 from wpaulino/proper-gossip-query-reply-chunk-splitting
discovery: adhere to proper channel chunk splitting for ReplyChannelRange
2020-12-10 18:10:07 -08:00
Olaoluwa Osuntokun
62a5cdbc60 Merge pull request #4857 from cfromknecht/meta-index-reinit
channeldb+tlv: add channel meta-index
2020-12-10 18:08:43 -08:00
Conner Fromknecht
0d57ff2432 lnwallet/test: execute ifacet tests for each backend in parallel 2020-12-10 17:42:26 -08:00
Conner Fromknecht
87787ce771 lnwallet: move interface_test.go to it's own package 2020-12-10 17:42:26 -08:00
Conner Fromknecht
1483ed119b make: use low-scrypt to speed up unit-race
This predominately affects the lnwallet unit tests which are the bulk of
the execution time.
2020-12-10 17:42:26 -08:00
eugene
f4593f95f4 channeldb/migration20: TestMigrateOutpointIndex 2020-12-10 17:37:59 -08:00
eugene
204b6c51cf channeldb: MigrateOutpointIndex, store indexStatus in outpoint index
Adds an outpoint index that stores a tlv stream. Currently the stream
only contains the outpoint's indexStatus. This should cut down on
big bbolt transactions in several places throughout the codebase.
2020-12-10 17:37:59 -08:00
Conner Fromknecht
08ee754a6d channeldb/db: properly reinit wallet during Wipe
Previously we wouldn't recreate some of the top level buckets that are
now considered expected with our migration logic. This bug was
preexisting, but never surfaced because the other TLB buckets were not
touched by this unit test.
2020-12-10 17:37:58 -08:00
Olaoluwa Osuntokun
415680a1b9 Merge pull request #4854 from Roasbeef/neutrino-addrv2
build: update to addrv2 aware neutrino version
2020-12-10 15:36:43 -08:00
Johan T. Halseth
1627310fb0 itest: add HTLC aggregation test 2020-12-10 14:24:21 +01:00