Commit Graph

12191 Commits

Author SHA1 Message Date
16436a3230 docs: update release notes 2021-09-15 10:27:00 +02:00
ef7e46bc2e travis: fix ARM and Windows itest parallelism 2021-09-15 10:26:52 +02:00
46e9481e6c routing: invalid channels updatechanpolicy call 2021-09-15 10:20:49 +02:00
03bce2129b Merge pull request #5732 from ellemouton/returnPingHanglerIfError
peer: return from pingHandler if error
2021-09-15 09:48:17 +02:00
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
171d047972 peer: return from pingHandler if error
This commit adds a missing return statement to pingHandler. This
prevents a nil pointer dereference panic from happening if an error is
returned from RegisterBlockEpochNtfn.
2021-09-15 08:43:16 +02:00
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
b8d5b7fa7c Merge pull request #5315 from orbitalturtle/block_height_discrepancy
Router: fix block height discrepancy
2021-09-14 17:57:20 -07:00
449f84d849 docs: update release notes for #5304 2021-09-14 16:28:31 -05:00
0120c86687 itest: Test new RPC call for checking macaroon permissions 2021-09-14 16:27:02 -05:00
ba17842e34 itest: Test new BakeMacaroonRequest for allowing external permissions 2021-09-14 16:27:02 -05:00
38c47e86f7 lncli: Add allow external permissions option to bakemacaroons cli call 2021-09-14 16:27:02 -05:00
72a46b8673 rpcserver: Add flag to BakeMacaroonRequest for allowing external permissions 2021-09-14 16:27:01 -05:00
d10a682fa9 macaroons+rpcserver: Add new RPC call for checking macaroon permissions 2021-09-14 16:26:28 -05:00
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
1ea6db1f26 Merge pull request #5725 from bottlepay/fix-amp-itest
lntest/itest: fix SendPaymentAMP test
2021-09-14 22:06:58 +02:00
3827d15ca6 lntest/itest: fix SendPaymentAMP test 2021-09-14 18:53:17 +02:00
23ded04ff5 docs: update release notes 0.14 2021-09-14 13:12:23 +02:00
3648f2fa4b payments: prefetch payment on hot paths 2021-09-14 13:12:23 +02:00
152d1dc36a kvdb: extra test coverage for kvdb.Prefetch 2021-09-14 13:12:23 +02:00
256b62e0d5 etcd: add kvdb.Prefetch
This commit extends the kvdb interface in a backwards compatible way
such that we'll be able to prefetch all keys in a bucket in one go reducing the
number of roundtrips.
2021-09-14 13:12:22 +02:00
daec66a4e4 etcd: STM to allow prefetching of keys and full ranges
This commit adds more full range caching to the STM such that we'll
be able to prefetch keys and ranges on the kvdb level. This will allow
us to reduce roundtrips to etcd do fast iteration of small ranges.
2021-09-14 13:12:19 +02:00
3608d36cca Merge pull request #5637 from yyforyongyu/fix-bitcoind-backup
itest: fix restore backup file test flake for bitcoind backend
2021-09-13 20:36:06 -07:00
02c4f6fe69 Docs: Updates 0.14.0 release notes 2021-09-13 21:17:46 -04:00
70dfa34f38 router: test that this change catches up router to the latest blocks 2021-09-13 21:15:50 -04:00
147c7dc94c router: fix 'out of order block error' by retrieving missing blocks in router
Fixes an issue where an out of order block error occurs in the router. When this occurs, the change uses the chain notifier to catch up on missed blocks and uses those blocks to fully update the routing graph with closed channels. Fixes #4710, #5132
2021-09-13 21:15:49 -04:00
63bb77082e docs: update release notes for 0.14 2021-09-14 07:34:38 +08:00
c4913e6f4a itest: require server being started when creating node
We now require the lnd to be fully started when creating a new node
using newNode.
2021-09-14 07:34:10 +08:00
286ca35bf4 rpcserver: check server is started in ExportAllChannelBackups 2021-09-14 07:34:10 +08:00
f5bac969e3 rpcperms+rpc: add ServerActive state and set it when server started 2021-09-14 07:34:09 +08:00
acdcf322b1 lnd: require blocks to be synced in regtest/simnet 2021-09-14 07:34:09 +08:00
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
868958d2bc docs: update release notes for 0.14 2021-09-13 13:29:51 -04:00
aeaa009e92 peer+chancloser: tryLinkShutdown during cooperative close process
Adds a new Brontide struct method tryLinkShutdown that attempts to
fetch the target link and calls ShutdownIfChannelClean on it. This
allows the coop close process to guarantee atomicity of the underlying
channel state. Also removes the UnregisterChannel method from the
chancloser's config as the link is shut down before the chancloser
is created.
2021-09-13 13:29:51 -04:00
608d11dcbc peer: add mockUpdateHandler for use in mockMessageSwitch 2021-09-13 13:29:50 -04:00
b2e90480ed htlcswitch: extend ChannelLink interface with ShutdownIfChannelClean
This allows a caller to ensure to optimistically shut down the link
if the channel is clean. If the channel is not clean, an error is
returned and the link continues functioning as normal. The caller
should also call RemoveLink to ensure that the link isn't seen as
usable within the switch.
2021-09-13 13:29:50 -04:00
7621d7f902 lnwallet: add IsChannelClean method and related tests
Adds a method to the LightningChannel struct called IsChannelClean
that returns a boolean telling the caller whether the channel state
is clean or not. Clean in this case means there are no lingering
updates to be signed for, no HTLC's active on either sides commitment
transaction, and no pending commitments on either side. This can be
used for dynamic commitments or during a strict cooperative close
process that ensures atomicity of the channel.
2021-09-13 13:29:43 -04:00
777abe5ff0 Merge pull request #5716 from guggero/fix-unit-tests
cluster: fix kvdb unit test
2021-09-13 15:59:31 +02:00
55b3802387 cluster: fix kvdb unit test
It looks like #5702 was merged prematurely and broke the kvdb unit
tests.
2021-09-13 14:57:42 +02:00
45343e4454 Merge pull request #5660 from LN-Zap/upstream/feat/delete-payment
add DeletePayment that allows to delete a specific payment or its failed HTLCs
2021-09-13 14:56:51 +02:00
91c3fb59ec docs: release notes for 0.14 2021-09-13 12:50:40 +02:00
7f53656753 lnd: add DeletePayment to the RPC
The RPC DeletePayment allows deleteing  single payment from its ID. When calling with `FailedHtlcsOnly` set in the request only failed HTLCs of this payment will be deleted.
2021-09-13 12:50:40 +02:00
a5641c5351 channeldb: add ability to delete a single payment from its ID
Adds `DeletePayment` to the channeldb, which allows to delete a single payment. If only failed HTLCs for this payment should be deleted it can be specified by the bool `failedHtlcsOnly`.
2021-09-13 12:50:40 +02:00
d5a87f8b5b channeldb: refactor fetching failed HTLC IDs inside DeletePayments 2021-09-13 12:16:17 +02:00
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
27b416935e Merge pull request #5695 from ErikEk/lncli-remove-error-log
lncli: remove error logs
2021-09-10 16:50:34 -07:00
400cc0eb96 docs: update release-notes-0.14.0.md 2021-09-10 14:40:58 +02:00
9bf04f9870 itest+etcd: save etcd logs along the node logs 2021-09-10 14:40:57 +02:00
6c2d8bb176 etcd: enable optional log file for embedded etcd log output
In this commit we add an extra config for enabling logging to an
external file when using embedded etcd. This can be useful when running
integration tests to see more details about etcd related issues.
2021-09-10 14:40:54 +02:00
cc939cfa5d Merge pull request #5706 from Liongrass/patch-1
trivial: link from readme to builder's guide [skip ci]
2021-09-10 10:23:44 +02:00