Commit Graph

11586 Commits

Author SHA1 Message Date
Oliver Gugger
5b8a3eb72f
doc: update INSTALL.md, recommend installing releases
To prevent novice users from running non-release versions, we update the
installation instructions to point them towards our release binaries.
We also document the new Docker build helper that allows you to compile
lnd without needing to install golang.
2021-01-11 10:21:03 +01:00
Oliver Gugger
236294622e
config+lncfg+sample-lnd.conf: fix feeurl documentation
A new top level feeurl option was added recently to replace the neutrino.feeurl
option. The new option was never added to the sample config file and the
text was never updated to reflect that the option is required for
neutrino on mainnet. We fix this and also add a valid mainnet example
URL to the sample config file.
2021-01-11 09:27:19 +01:00
Olaoluwa Osuntokun
f62bc971c0
build: bump version to v0.12.0-beta.rc5 2021-01-08 16:30:43 -08:00
Olaoluwa Osuntokun
5b8c0e69e1
Merge pull request #4879 from guggero/release-fix
release: actually create deterministic release archives
2021-01-08 12:06:46 -08:00
Oliver Gugger
4c56f3cacb
multi: add release helper docker file 2021-01-08 16:14:24 +01:00
Andras Banki-Horvath
d3cd412137
ci: add etcd itests to our CI (bitcoind only) 2021-01-08 15:39:12 +01:00
Andras Banki-Horvath
b2ab5e8af1
itests: run etcd itests with generated ports 2021-01-08 15:39:12 +01:00
Andras Banki-Horvath
f1831f0581
etcd: add support for user specified ports for testing 2021-01-08 15:39:11 +01:00
Andras Banki-Horvath
ce4ca86ca6
kvdb: fix kvdb.Batch to use state reset when using etcd backend 2021-01-08 15:39:11 +01:00
Oliver Gugger
2686391c31
scripts: package release artifacts deterministically
A number of tricks need to be applied to the tar and zip commands
respectively to make sure they always produce deterministic archives.
This includes setting the file timestamps to a fixed date and setting
specific ownership attributes (tar) or no attributes at all (zip).
2021-01-08 15:03:20 +01:00
Oliver Gugger
330f3c4dd0
make: use --tags to describe commit 2021-01-08 11:27:46 +01:00
Olaoluwa Osuntokun
c6fe36465b
build: bump version to v0.12.0-beta.rc4 2021-01-07 15:58:15 -08:00
Olaoluwa Osuntokun
6e6384114c
Merge pull request #4895 from wpaulino/disallow-premature-chan-updates
discovery: prevent rebroadcast of premature channel updates
2021-01-07 15:55:32 -08:00
Olaoluwa Osuntokun
98ea433271
Merge pull request #4898 from Roasbeef/pay-addr-sendpay
lnrpc/routerrpc: add payment addr to SendPaymentRequest
2021-01-07 11:25:50 -08:00
Wilmer Paulino
023f327cdd
lntest: add rebroadcast stale announcements err to whitelist 2021-01-06 14:33:41 -08:00
Wilmer Paulino
7ef1f3f636
discovery: use source of ann upon confirmed channel ann batch
We do this instead of using the source of the AnnounceSignatures
message, as we filter out the source when broadcasting any
announcements, leading to the remote node not receiving our channel
update. Note that this is done more for the sake of correctness and to
address a flake within the integration tests, as channel updates are
sent directly and reliably to channel counterparts.
2021-01-06 13:16:44 -08:00
Wilmer Paulino
00d4e92362
discovery: prevent rebroadcast of premature channel updates
As similarly done with premature channel announcements, we'll no longer
allow premature channel updates to be rebroadcast once mature. This is
no longer necessary as channel announcements that we're not aware of are
usually broadcast to us with their accompanying channel updates.
2021-01-06 12:52:41 -08:00
Olaoluwa Osuntokun
b85c92d8d5
lnrpc/routerrpc: add payment addr to SendPaymentRequest
Fixes #4692
2021-01-05 19:04:57 -08:00
Olaoluwa Osuntokun
fbb3e400b8
Merge pull request #4885 from cfromknecht/wtwr-logging
watchtower/wtclient: add prefix logging
2021-01-05 11:28:55 -08:00
Andras Banki-Horvath
a9ba5af9fd
etcd: fix config in docs and extend with new options 2021-01-05 16:50:57 +01:00
Andras Banki-Horvath
cb2b5efc6e
etcd: add (dev only) disabletls option for etcd 2021-01-05 16:50:53 +01:00
Oliver Gugger
ae4a1908dd
GitHub: fetch full history for release build
To make sure git has the full history, including all annotated tags, we
need to explicitly fetch everything on checkout.
2021-01-05 10:41:34 +01:00
Conner Fromknecht
e0e57642b6
wtclient/client: fix missed prefix log 2021-01-04 08:33:34 -08:00
Conner Fromknecht
1d3535582b
wtclient/seseion_queue: add prefix logging 2021-01-04 08:32:34 -08:00
Conner Fromknecht
de09b8d9bd
wtclient/session_negotiator: add prefix logging 2021-01-04 08:32:34 -08:00
Conner Fromknecht
505901d7b8
wtclient/task_pipeline: add prefix logging 2021-01-04 08:32:31 -08:00
Oliver Gugger
faa399f942
Merge pull request #4883 from yyforyongyu/small-fix
trivial: fix make rpc-format
2021-01-04 09:59:07 +01:00
Olaoluwa Osuntokun
f3b23b8046
build: bump version to v0.12.0-beta.rc3 2020-12-31 15:58:17 -08:00
Olaoluwa Osuntokun
ad206123e5
Merge pull request #4881 from guggero/rpc-log-fix
rpcserver: fix log statement in channelbalance
2020-12-28 12:40:33 -08:00
Olaoluwa Osuntokun
0cebce8a78
Merge pull request #4887 from calvinrzachman/bit-align
ensure 64bit alignment of atomically accessed field in ChannelAcceptor
2020-12-28 12:40:04 -08:00
Calvin Zachman
19440c1e39 ensure 64bit alignment of atomically accessed field in ChannelAcceptor
- help lnd avoid a bug in the `sync/atomic` package which requires 64-bit alignment of atomically accessed fields
2020-12-28 10:04:13 -06:00
yyforyongyu
c171548944
trivial: fix make rpc-format 2020-12-24 21:41:42 +08:00
Oliver Gugger
49edb2b524
rpcserver: fix log statement in channelbalance
Fixes a typo and missing format 'verb' in the RPCS debug log.
2020-12-22 09:39:43 +01:00
Olaoluwa Osuntokun
9cd9bff59f
build: bump version to v0.12.0-beta.rc2 2020-12-18 16:27:14 -08:00
Johan T. Halseth
cc0321d188
Merge pull request #4872 from Roasbeef/fix-tweakless-downgrade
peer: ensure consistent local+global feature bits when downgrading
2020-12-18 09:53:45 +01:00
Johan T. Halseth
c3b20e34a7
monitoring: run go fmt 2020-12-18 09:04:44 +01:00
Johan T. Halseth
892635a93d
make: run goimports during make fmt 2020-12-18 09:04:44 +01:00
Johan T. Halseth
6dfefe39ce
make: exclude autogenerated files from go fmt 2020-12-18 09:04:44 +01:00
Olaoluwa Osuntokun
403d37f426
peer: ensure consistent local+global feature bits when downgrading
In this commit, we fix an issue that would cause peers running lnd 0.12
to not be able to connect to existing peers due to a feature bit
compatibility issue. In a recent PR we started to downgrade our required
feature bit for static key from required to optional, if we had a legacy
(non-tweakless) open with the peer then we would unset the required bit
and set the optional bit to ensure we could still connect to them.

The change implementing this new version of downgrade failed _also_
unset the bit (the required bit) in the "legacy global" feature bit
section. This caused the `RawFeatureVector.Merge` method to fail as we
would have the required bit set in the `GlobalFeatures` section, but the
optional bit set in the `Features` section. The `Merge` method ensures
that a required and optional bit can't be set in two different locations
for the same feature.

This PR fixes this issue by also unsetting the bit in the
`GlobalFeatures` field in the init message.

Fixes #4871
2020-12-17 17:04:15 -08:00
Eugene
e0439965bb
Merge pull request #4757 from Crypt-iQ/fmgr_1109
funding: move Manager to own package
2020-12-17 11:43:12 -05:00
eugene
dcdf36f410 lnd+funding: move Manager to funding, change references 2020-12-17 10:45:05 -05:00
eugene
e7e872f19a lnd: remove Manager's stop method, linter complaints 2020-12-17 09:50:55 -05:00
eugene
936227798a lnd: remove openChanReq, call InitFundingWorkflow with InitFundingMsg 2020-12-17 09:50:48 -05:00
eugene
e85baea1b3 lnd: export InitFundingMsg 2020-12-17 09:36:34 -05:00
eugene
105e961b20 lnd: export Manager's InitFundingWorkflow method 2020-12-17 09:36:34 -05:00
eugene
1b84d07c4d lnd+funding: register funding logger 2020-12-17 09:36:34 -05:00
eugene
6a209bbdaf lnd: export Manager, NewFundingManager 2020-12-17 09:36:34 -05:00
eugene
f43fd32daf lnd: remove PendingChannels call from fundingManager 2020-12-17 09:36:34 -05:00
eugene
9c72dd9eba funding+peer: rename Manager interface to Controller 2020-12-17 09:36:34 -05:00
eugene
caa0f5da6a multi: move and export funding-related vars to funding package
Also moves the lnd global MaxFundingAmount to server.go
2020-12-17 09:36:34 -05:00