Commit Graph

318 Commits

Author SHA1 Message Date
Oliver Gugger
d9534ea108
Merge pull request #5405 from ErikEk/routing-updatechanpolicy-chan-check
routing: report invalid channels in updatechanpolicy call
2021-09-16 09:41:02 +02:00
naveen
ae6f771443 mod: bump miekg/dns to next version
The dns has https://deps.dev/go/github.com%2Fmiekg%2Fdns/v1.1.25 has
GO-2020-0012 https://storage.googleapis.com/go-vulndb/golang.org/x/crypto.json

Updated the dependency with the fix.
2021-09-15 23:11:04 +00:00
Oliver Gugger
15ec974b15
Merge pull request #5734 from bhandras/itest_parallelism
build: fix itest parallelism
2021-09-15 20:15:29 +02:00
yyforyongyu
3b4965d776
docs: update release note for healthcheck fix 2021-09-15 19:52:25 +08:00
Andras Banki-Horvath
16436a3230
docs: update release notes 2021-09-15 10:27:00 +02:00
ErikEk
46e9481e6c routing: invalid channels updatechanpolicy call 2021-09-15 10:20:49 +02:00
Oliver Gugger
08c9d3fbdd
Merge pull request #5304 from orbitalturtle/check-macaroon-rpcs
rpc: Bake and validate macaroons with external permissions
2021-09-15 09:42:38 +02:00
Olaoluwa Osuntokun
fb06c14c22
Merge pull request #5731 from guggero/arm-reduce-parallel
Travis: reduce ARM itest parallelism to 2
2021-09-14 18:06:29 -07:00
Olaoluwa Osuntokun
b8d5b7fa7c
Merge pull request #5315 from orbitalturtle/block_height_discrepancy
Router: fix block height discrepancy
2021-09-14 17:57:20 -07:00
Turtle
449f84d849
docs: update release notes for #5304 2021-09-14 16:28:31 -05:00
Oliver Gugger
4d89585a2d
Travis: reduce ARM itest parallelism to 2
Reduces the number of concurrent tranches of itests running to two on
ARM in an attempt to make the tests less flaky because of very high CPU
usage with the default 4 parallel tranches.
2021-09-14 22:11:25 +02:00
Joost Jager
3827d15ca6 lntest/itest: fix SendPaymentAMP test 2021-09-14 18:53:17 +02:00
Andras Banki-Horvath
23ded04ff5
docs: update release notes 0.14 2021-09-14 13:12:23 +02:00
Turtle
02c4f6fe69
Docs: Updates 0.14.0 release notes 2021-09-13 21:17:46 -04:00
yyforyongyu
63bb77082e
docs: update release notes for 0.14 2021-09-14 07:34:38 +08:00
Olaoluwa Osuntokun
b0f3a08f2d
Merge pull request #5465 from Crypt-iQ/spend_height_0702
chainntnfs: populate spendsByHeight during historical dispatch
2021-09-13 11:58:49 -07:00
eugene
868958d2bc
docs: update release notes for 0.14 2021-09-13 13:29:51 -04:00
Bjarne Magnussen
91c3fb59ec
docs: release notes for 0.14 2021-09-13 12:50:40 +02:00
Oliver Gugger
25a53f04f7
Merge pull request #5702 from bhandras/itest_etcd_logs
itest: save etcd logs along node logs in separate files
2021-09-13 11:50:35 +02:00
Olaoluwa Osuntokun
27b416935e
Merge pull request #5695 from ErikEk/lncli-remove-error-log
lncli: remove error logs
2021-09-10 16:50:34 -07:00
Andras Banki-Horvath
400cc0eb96
docs: update release-notes-0.14.0.md 2021-09-10 14:40:58 +02:00
Oliver Gugger
4337116bce
Merge pull request #5697 from arshbot/export-selectHopHints
invoicesrpc: expose selectHopHints
2021-09-08 10:27:36 +02:00
Harsha Goli
8720b8f657
docs: update release-notes-0.14.0.md 2021-09-07 14:45:35 -07:00
Andras Banki-Horvath
f2cc783043
docs: update release-notes-0.14.0.md 2021-09-07 10:46:50 +02:00
Oliver Gugger
d50ee834e1
Merge pull request #5688 from bhandras/recovery_itest_flake
itest: fix on-chain recovery flake caused by short timeout/btcd on ARM
2021-09-07 10:44:43 +02:00
Andras Banki-Horvath
b1288ae233
docs: update release-notes-0.14.0.md 2021-09-06 21:46:23 +02:00
ErikEk
195e57025b lncli: remove error logs 2021-09-06 19:12:43 +02:00
Oliver Gugger
180fba056f
docs: add BatchOpenChannel to PSBT doc and release notes 2021-09-03 18:39:45 +02:00
eugene
74693ed491
docs: update release notes for 0.14.0 2021-09-01 16:49:28 -04:00
Wilmer Paulino
61a0112765
docs: add explicit channel negotiation text to release notes 2021-08-30 19:17:51 -07:00
Olaoluwa Osuntokun
844874252f
Merge pull request #5676 from ErikEk/chainnotifier-remove-error-log
chainnotifier: remove error logs
2021-08-30 18:35:12 -07:00
Olaoluwa Osuntokun
480a111c54
Merge pull request #5453 from Crypt-iQ/neutrino_conf_0629
chainntnfs: neutrinonotify patches
2021-08-30 16:04:57 -07:00
Olaoluwa Osuntokun
8339b285e7
docs/release-notes: add new brontide optimization to 0.14 notes 2021-08-27 16:57:21 -07:00
Olaoluwa Osuntokun
c93824ec9a
Merge pull request #5621 from Roasbeef/ping-pong-headers
peer: always send latest block header as part of ping messages
2021-08-27 16:55:46 -07:00
ErikEk
c68a508535 chainnotifier: remove error log 2021-08-28 00:13:37 +02:00
eugene
9f6f5e963a
docs: update release notes for 0.14 2021-08-27 14:12:02 -04:00
Torkel Rogstad
d6045a0fd5 lntest: avoid global ServeMux
Using the default, global ServeMux prevents the same process from
calling `lntest.NewNetworkHarness` multiple times, because we get a
panic when registering HTTP routes.

Instead, we use the ServeMux beloning to the fee service struct.
2021-08-27 11:30:01 +02:00
Olaoluwa Osuntokun
abb2448718
docs/release-notes: add section w/ priv key caching in 0.14 2021-08-25 18:55:27 -07:00
Olaoluwa Osuntokun
8fd14bc458
docs/release-notes: add notes for new ping header in 0.14 2021-08-25 16:47:23 -07:00
Oliver Gugger
93d12cd9fc
Merge pull request #5643 from bottlepay/updatepolicy-nested-tx
routing/localchans: fix nested db tx
2021-08-24 17:42:39 +02:00
Oliver Gugger
2835cebe90
Merge pull request #5659 from guggero/unit-test-race-fix
multi: fix unit test for high CPU load envs
2021-08-24 15:16:28 +02:00
Oliver Gugger
998abd1886
Merge pull request #5657 from ErikEk/releasedoc-fix
docs: release note fix
2021-08-24 14:00:45 +02:00
Joost Jager
bd07b5f49e
routing/localchans: fix nested db tx
This commit fixes a bug where a db tx is opened within another db tx.
2021-08-24 13:43:26 +02:00
Oliver Gugger
1f3a6e101d
multi: fix unit test for high CPU load envs
It seems that the GitHub CI runners share a CPU and therefore only have
very few ressources available. This causes the wallet unlocker and breach
arbiter tests to fail if we don't give them enough time to complete.
2021-08-24 13:03:21 +02:00
Oliver Gugger
23cd231483
Merge pull request #4717 from guggero/xprv-wallet-init
walletunlocker: Allow wallet to be created from extended master root key (xprv)
2021-08-24 13:01:41 +02:00
Oliver Gugger
c74c46147f
Merge pull request #5646 from yyforyongyu/fix-context-leak
itest: properly handle the creation of timeout context
2021-08-24 10:44:36 +02:00
Oliver Gugger
8632fc9233
docs: update release notes 2021-08-24 10:37:34 +02:00
yyforyongyu
cb6b374b3d
docs: update release note for context leak fix 2021-08-24 12:28:40 +08:00
ErikEk
599c221d30 docs: note fix 2021-08-24 02:23:46 +02:00
ErikEk
ca7192f8fd itest: include compressed btcd backend logs 2021-08-24 02:00:44 +02:00
Olaoluwa Osuntokun
4487acc5d9 docs/release-notes: add tor hybrid mode, fix mark down headers 2021-08-22 14:08:20 -05:00
Oliver Gugger
951e2164fd
Merge pull request #5536 from Kixunil/systemd-notify
Implemented systemd notify
2021-08-20 19:19:34 +02:00
de6df1re
6348da1587 docs: update release note 2021-08-20 10:09:35 -05:00
Martin Habovstiak
4bcb32753f lnd+signal: implement systemd notify
This adds support for notifying systemd about the state of LND. It
notifies systemd just before waiting for wallet password or, if
`wallet-password-file` was specified, right after unlocking the wallet.

This means that "ready" represents RPC being available for intended use.
It's intentional, so that client services can use `After=` in `systemd`
configuration to avoid misleading error messages about missing files or
refused connections.

Part of #4470
2021-08-20 13:26:48 +02:00
yyforyongyu
ba116f7ff1
docs: update release note 2021-08-19 19:35:28 +08:00
Olaoluwa Osuntokun
52767a7567
Merge pull request #5591 from Crypt-iQ/rest_sendpayment_fix_07302021
rpcserver: validate FinalCltvDelta and CltvLimit for REST
2021-08-16 17:01:31 -07:00
Olaoluwa Osuntokun
f6e9f01859
Merge pull request #5442 from bottlepay/zero-output-psbt
walletrpc+lncli: allow zero output psbt funding
2021-08-16 16:50:52 -07:00
Joost Jager
925229f9df
walletrpc+lncli: allow zero output psbt funding
To support the cpfp fee bump use case where no external outputs are
required.
2021-08-16 08:41:50 +02:00
Joost Jager
09386213be
htlcswitch: log link message with channel point
In lnd, log messages about channels are generally logged with a
reference to their channel point rather than the short channel id.
Channel point is reorg-resistant and also easier to look up in for
example a block explorer.

In the link however, all log messages are accompanied by short channel
id. This makes it difficult to grep a log for all channel activity. The
PEER message for example which are often crucial to analyse, are logged
with channel points.

This commit modifies the link logging to also use channel points.
2021-08-16 08:24:35 +02:00
eugene
c3ac95abbd
docs: update release notes for 0.14 2021-08-11 16:59:16 -04:00
eugene
cbbad3a674
docs: update release notes for 0.14 2021-08-11 15:37:53 -04:00
Oliver Gugger
dee9b9a9b1
Merge pull request #5603 from Crypt-iQ/peer_switch_refactor_08022021
htlcswitch+peer: introduce packetHandler, ChannelUpdateHandler interfaces for cleaner separation
2021-08-11 09:31:02 +02:00
yyforyongyu
6d7fef7742
docs: update release note 2021-08-11 12:45:14 +08:00
Olaoluwa Osuntokun
be341bcd68
Merge pull request #5528 from guggero/keep-channel-backup-local-force-close
backups: Keep channel backup in case of local force close
2021-08-10 19:31:59 -07:00
Olaoluwa Osuntokun
b0e9442ba5
Merge pull request #4884 from yyforyongyu/3004-buffer-pool
lnwire: fix heap escapes to reduce gc pressure
2021-08-10 19:13:08 -07:00
Olaoluwa Osuntokun
f33752da3b
docs/release-notes: mention change to contribution guidelines 2021-08-10 15:56:26 -07:00
eugene
db4a488e23
docs: update 0.14 release notes 2021-08-10 17:15:52 -04:00
András Bánki-Horváth
23c3597d13
Merge pull request #5607 from bhandras/payments_test_flake_fix
itests: payments test flake fix
2021-08-10 09:15:56 +02:00
yyforyongyu
a0e958f96f
docs: add release notes for lnwire gc 2021-08-10 05:54:45 +08:00
Oliver Gugger
527c6f06e2
docs: add release notes 2021-08-09 16:06:56 +02:00
Olaoluwa Osuntokun
90db8de6fe
Merge pull request #5460 from ErikEk/lncli-add-command-for-publishtransaction
lncli: add command for publishtransaction
2021-08-06 14:42:49 -07:00
Andras Banki-Horvath
ccd890b098
docs: update release notes 2021-08-06 17:37:40 +02:00
Andras Banki-Horvath
e243be1ba2
docs: update 0.14.0 release notes 2021-08-06 07:53:14 +02:00
Olaoluwa Osuntokun
407ee84838
Merge pull request #5554 from Roasbeef/sendpayment-amp-reuse-fix
cmd/lncli: always parse the pay_addr field for sendpayment
2021-08-05 13:39:48 -07:00
Oliver Gugger
ec587b7253
docs: add release notes 2021-08-05 16:11:48 +02:00
Oliver Gugger
ea8c0abaaf
Merge pull request #5601 from guggero/falafel-js-stubs
lnrpc: add JSON stubs for interacting with lnrpc from a WASM context
2021-08-05 09:37:25 +02:00
Olaoluwa Osuntokun
9505402ec2
docs/release-notes: add item for easy AMP CLI re-use 2021-08-04 19:17:57 -07:00
Olaoluwa Osuntokun
57d70ee9ce
docs/release-notes: add item for sendpayment pay_addr bug fix 2021-08-04 19:17:51 -07:00
Olaoluwa Osuntokun
98b29a6967
docs/release-notes: update release notes for signet DNS fix 2021-08-04 18:31:41 -07:00
Oliver Gugger
9e1bb7e8e2
docs: add release notes for 0.14.0 2021-08-04 14:55:57 +02:00
Oliver Gugger
702f0d7ced
lnrpc: generate JSON/WASM client stubs 2021-08-03 13:44:36 +02:00
ErikEk
ace615b6e8 lncli: add lncli command for publishtransaction 2021-08-03 04:45:28 +02:00
xanoni
f5747c20ef lnwallet/wallet.go: clarify anchor chan error str
Improve 'ErrReservedValueInvalidated' error string to explain that the
error is triggered by a transaction that would deplete funds reserved for
potential future anchor channel closings (via CPFP)

Add hint that further details can be found in the debug log

Update strings in 'lntest/itest/log_error_whitelist.txt' correspondingly
2021-08-02 05:38:09 -04:00
ErikEk
c8fc9b0a85 trivial: missing dots 2021-08-01 02:35:14 +02:00
Oliver Gugger
3d9d985fdf
make: disable itest error whitelist check
Since we don't really do anything with the errors we check in the itest
error whitelist but get a lot of failed Travis runs because of it, we
disable the check for the moment.
2021-07-30 10:18:43 +02:00
yyforyongyu
3005207167
docs: update release notes for #5573 2021-07-30 12:06:30 +08:00
Oliver Gugger
a35031ca2e
healthcheck: fix missing import 2021-07-28 11:01:27 +02:00
Oliver Gugger
4a6b1f7c82
Merge pull request #5534 from Kixunil/admin-macaroon-group-read
Allow group reading admin macaroon
2021-07-27 18:16:21 +02:00
Oliver Gugger
c3962528e2
Merge pull request #5473 from guggero/grpc-gateway-update
maintenance: update etcd and grpc-gateway libraries, rename rpc.proto to lightning.proto
2021-07-27 16:11:48 +02:00
Andras Banki-Horvath
7da0b80674
docs: update 0.14 release notes 2021-07-27 13:57:09 +02:00
Oliver Gugger
64360c0e34
docs: add release notes 2021-07-27 13:10:00 +02:00
Oliver Gugger
fa26657950
mod: upgrade miekg/dns library to fix dependabot alert
We're using an old and potentially vulnerable version of the DNS
resolution library. This commit bumps the library to the latest
recommended version.
2021-07-27 09:41:00 +02:00
András Bánki-Horváth
5de6af798d
Merge pull request #5515 from bhandras/mc_store_optimization
routing: store missioncontrol state in blocks and eliminate cursor use
2021-07-26 23:36:51 +02:00
Andras Banki-Horvath
cfa3f708f1
docs: update release notes 2021-07-26 17:02:14 +02:00
Oliver Gugger
a427451b75
Merge pull request #5553 from Kixunil/patch-3
Remove warning about pruned nodes
2021-07-23 15:43:31 +02:00
Martin Habovštiak
410b30b9ca docs: remove warning about pruned nodes
This removes a warning in the documentation saying that pruned nodes are
not supported. This is no longer the case as [pruning is supported since
0.13](https://github.com/lightningnetwork/lnd/pull/5154). So instead it
now says pruning is supported and notes the version and implications of
pruning.
2021-07-23 14:27:13 +02:00
Johnny Holton
9ff4b9b652 Fix typos in dest_custom_records comment 2021-07-22 21:41:38 -04:00
Oliver Gugger
49f1169d7c
Merge pull request #5542 from bhandras/itest-race
build: add itest-race build target to catch data races with itests
2021-07-22 20:47:34 +02:00
András Bánki-Horváth
275eca1640
Merge pull request #5514 from bhandras/payment_seq_blocks
payments: allocate payment sequences in blocks
2021-07-22 19:21:44 +02:00
Andras Banki-Horvath
bc3886c85b
docs: update release notes 2021-07-22 15:15:38 +02:00
Oliver Gugger
04c2640060
docs: add release notes for #5526 2021-07-22 09:48:31 +02:00
Martin Habovstiak
318d738131 lnd: allow group reading admin macaroon
This changes file reation mode on admin macaroon from 0600 to 0640. The
reason is to make permission management easier.

Closes #4385

**Is this safe?**

Yes, it is. Assuming a reasonably secure Linux system, it will have a
separate group for each user. E.g. a new user `lnd` gets assigned group
`lnd` which nothing else belongs to. A system that does not do this is
inherently broken already.

Since there is no other user in the group, no other user can read admin
macaroon unless the administrator explicitly allowed it. Thus there's no
harm allowing group read.
2021-07-22 08:21:03 +02:00
Olaoluwa Osuntokun
30a0e6c745
Merge pull request #5533 from ErikEk/invoices-return-payment-address-addholdinvoice
invoices: return payment address and add index from addholdinvoice
2021-07-21 16:54:20 -07:00
Andras Banki-Horvath
9ce5585eff
docs: update release notes 2021-07-21 16:36:13 +02:00
Oliver Gugger
fb17bf2bb5
Merge pull request #5547 from bhandras/etcd_backend_rwlock
etcd: optionally reduce concurrency to single writer for legacy code
2021-07-21 16:28:20 +02:00
Oliver Gugger
b16877236a
Merge pull request #5543 from Roasbeef/release-notes-master-special-case
scripts: account for master branch merges in release notes script
2021-07-21 09:45:11 +02:00
Olaoluwa Osuntokun
115c99d0e0
docs/release-notes: add section re merge commit exemption 2021-07-20 16:22:46 -07:00
Andras Banki-Horvath
dd05e29225
docs: update release notes 2021-07-20 21:02:16 +02:00
Zero-1729
712643e2aa
docs: minor fixes to contribution guidelines 2021-07-20 14:58:45 +01:00
Oliver Gugger
5482451297
mod+GitHub: shorten PR template, bump golang to 1.15
The golang version always needs to be in sync between the go.mod, the PR
checklist and the installation instructions.

We also shorten the Pull Request template by removing everything that we
have a CI check for and just refer to those checks instead.
2021-07-20 10:55:08 +02:00
ErikEk
850dee37ee invoices: return payment address from addholdinvoice 2021-07-19 17:05:03 +02:00
ErikEk
5282b54ad3 invoice: unused error check 2021-07-19 14:24:52 +02:00
Olaoluwa Osuntokun
121979546b
docs/release-notes: add entry for new release notes pre-submit check 2021-07-16 11:01:04 -07:00
Joost Jager
3026e5a826
build: bump btcwallet 2021-07-08 14:34:16 +02:00
Olaoluwa Osuntokun
f67d4d346b
docs/release-notes: update release notes for 0.13.1 2021-07-01 18:26:10 -07:00
yyforyongyu
c081707a5b
docs/release-notes: add deadline aware to 0.13.1 2021-06-29 20:30:58 +08:00
Olaoluwa Osuntokun
ff8153c332
docs/release-notes: add router height bug fix to 0.13.1 2021-06-22 17:24:17 -07:00
Olaoluwa Osuntokun
d983263362
docs/release-notes: add new in-tree location for release notes
In this commit, we add a new folder within the `docs` directory that will
house the release notes for all versions of `lnd` going forward.  Moving to
use `git` for the release notes rather than the normal drafting procedure
lets us keep track of the set of changes more consistency over time, lets
contributors add their release notes over time, and also means we'll no
longer need to do a crunch at the tail end of the release process to fill in
the set of release notes.

For the 0.13.1 release notes, I've done a scan and added anything that has
been merged since the last major version tag.  In a follow up change, we'll
add a new Github action that fails the build if an entry in the release
notes linking to the newly added PR isn't committed as well. Until then, any
PRs merged in should ensure that they add an entry within the relevant
milestone.
2021-06-21 19:24:49 -07:00