Commit Graph
100 Commits
Author SHA1 Message Date
Andras Banki-Horvath c09a81624c keys: update key for bhandras 2022-06-09 09:28:46 +02:00
Andras Banki-Horvath 699f9c0d23 docs: update release notes for 0.15.0 2022-05-31 17:36:44 +02:00
Andras Banki-Horvath 98f39deb38 invoices: fix deadlock in hodl subscription handling 2022-05-31 17:36:43 +02:00
Andras Banki-Horvath cc8a1f0d2b invoices: fix deadlock in notification handling 2022-05-31 17:36:40 +02:00
Andras Banki-Horvath bbe953d70d docs: update release notes 0.15.0 2022-05-06 12:29:38 +02:00
Andras Banki-Horvath c4c188f6d9 signer: fix crash when musig combine doesn't have final sig 2022-05-06 12:29:38 +02:00
Andras Banki-Horvath ddf0571031 itest: cover musig2 combine without all signatures ready 2022-05-06 12:29:32 +02:00
Andras Banki-Horvath 70ac0070fa docs: update release notes 0.15.0 2022-04-12 11:56:34 +02:00
Andras Banki-Horvath 3d5f33a0cf routing: fail in-flight attempts cleanly on terminal payment failure
In case of a multi shard payment with more than one in-flight shards,
one shard quitting with a terminal failure will stop the payment
lifecycle and close the `shardHandler`'s `quit` channel. In the
`collectResult` function we're waiting for the `Switch` to
asynchronously return a result for each shard. This may have been
interrupted by the aformentioned `quit` channel's closing skipping
attempt failure (or success) notification towards the control tower
and therefore skipping proper settle/fail info fill in the channel db.
Since payments have a composite state of a global failure reason and
settle/fail info for all attempts, any attempt with an unfilled
settle/fail info keeps a payment in-flight even if the payment itself
isn't in-flight anymore.
2022-04-12 11:56:33 +02:00
Andras Banki-Horvath 64ea883105 switch+test: fix race condition in unit test 2022-03-23 13:26:15 +01:00
Andras Banki-Horvath 31cb876301 docs: update release notes 0.15.0 2022-03-22 14:20:40 +01:00
Andras Banki-Horvath 0e4d7cf143 itest: make use of session ttl in failover test 2022-03-22 14:20:40 +01:00
Andras Banki-Horvath 7c8093ad1a config: update sample-lnd.conf 2022-03-22 14:20:40 +01:00
Andras Banki-Horvath 8eca46f142 cluster: configurable session TTL for the leader elector 2022-03-22 14:20:36 +01:00
Andras Banki-Horvath 95d8fd8007 docs: update release notes 0.15.0 2022-03-14 15:16:01 +01:00
Andras Banki-Horvath c548a70e0d invoices: fix deadlock in invoice registry 2022-03-14 15:15:58 +01:00
Andras Banki-Horvath d28c9000c5 docs: update release notes 0.15.0 2022-02-28 12:03:06 +01:00
Andras Banki-Horvath bee5e7b761 docs: update etcd docs 2022-02-28 12:03:05 +01:00
Andras Banki-Horvath 1093683b47 etcd: set embedded etcd default max msg size and up txn limit 2022-02-28 12:03:05 +01:00
Andras Banki-Horvath 5e90193180 etcd: fix config clone 2022-02-28 12:03:05 +01:00
Andras Banki-Horvath 40af029413 etcd: extend kvdb_etcd with a real ForAll implementation 2022-02-28 12:03:04 +01:00
Andras Banki-Horvath 9591e058ea itest: add test for the channel policy fee rate round down bug 2022-01-25 15:58:43 -08:00
Andras Banki-Horvath 39ea802eb1 docs: update release notes 0.15.0 2022-01-24 17:43:01 +01:00
Andras Banki-Horvath eeea141e01 lnd: allow large GRPC messages 2022-01-24 17:43:00 +01:00
Andras Banki-Horvath 996be217b9 lncli: add (dev only) importgraph 2022-01-24 17:43:00 +01:00
Andras Banki-Horvath d059f78b4d build: add dev tag to the linter config 2022-01-24 17:43:00 +01:00
Andras Banki-Horvath 1a8f094503 lnrpc: add the devrpc development only subserver + devrpc.ImportGraph
This commits adds the devrpc package which implements a subserver that
adds clean separation for RPC calls useful for development and
debugging. This subserver is only compiled in if the dev tag is set.
Furthermore the commit adds the devrpc.ImportGraph call which can
import a graph dump obtained from another node by calling DescribeGraph.
Since the graph dump does not include the auth proofs, the imported
channels will be considered private.
2022-01-24 17:42:59 +01:00
Andras Banki-Horvath 825422a82a lncfg: move ParseHexColor to lncfg 2022-01-24 17:42:54 +01:00
Andras Banki-Horvath 2dff5ba216 docs: update release notes 0.14.2 2022-01-20 18:20:44 +01:00
Andras Banki-Horvath ec046aec1b lncli: add force flag to 2022-01-19 17:18:06 +01:00
Andras Banki-Horvath 23c157a07b routing: add option to force import MC pair history
This commit adds the `force` flag to the `XImportMissionControl` RPC
which allows skipping rules around the pair import except for what is
mandatory to make values meaningful. This can be useful for when clients
would like to forcibly override MC state in order to manipulate routing
results.
2022-01-19 17:18:05 +01:00
Andras Banki-Horvath 5efbb2b0ff docs: update release notes 2021-12-08 23:10:20 +01:00
Andras Banki-Horvath 8cd607447e routing: fix memory corruption in MC store
Since bbolt returns references to internally stored data when storing
locally it's best to copy the byte slices returned or alternatively
convert them to string (which also makes a copy) to avoid crashes casued
by memory corruption.
2021-12-08 23:10:16 +01:00
Andras Banki-Horvath 24d5146894 docs: update release notes 2021-12-02 21:07:50 +01:00
Andras Banki-Horvath 1ccc5e8014 etcd: make max message size configurable 2021-12-02 21:07:49 +01:00
Andras Banki-Horvath 0beaee0336 docs: update release notes 2021-11-08 12:40:18 +01:00
Andras Banki-Horvath 3df216f6c3 channeldb: avoid locking the graph cache while iterating channels
It may happen that we do pathfinding while also attempt to change the
graph. In this case changing the database, channel state, graph while
reading from the same sources may create deadlocks. To resolve this we
change locking policy in the graph cache when pathfinding.
2021-11-08 12:40:14 +01:00
Andras Banki-Horvath 4d4b525058 docs: update release notes 2021-11-02 20:19:07 -07:00
Andras Banki-Horvath ea5d43a2a8 channeldb: fix crash when inbound policy is unset 2021-11-02 20:18:58 -07:00
Andras Banki-Horvath c9533bf6b9 docs: update leader election docs [skip ci] 2021-11-01 16:30:13 +01:00
Andras Banki-Horvath 76065e84d3 invoices: do not log when invoice is already deleted 2021-11-01 16:10:45 +01:00
Andras Banki-Horvath 11cf4216e4 multi: move all channelstate operations to ChannelStateDB 2021-09-29 17:00:03 +02:00
Andras Banki-Horvath 60cccf8409 multi: carve out LinkNodeDB from channeldb.DB for cleaner separation 2021-09-29 17:00:02 +02:00
Andras Banki-Horvath 292b8e1ce6 channeldb: fix dangerous type casting hack 2021-09-29 17:00:02 +02:00
Andras Banki-Horvath 639faeed6d channeldb: use kvdb.Backend instead of channeldb.DB for the Graph 2021-09-29 17:00:01 +02:00
Andras Banki-Horvath 16436a3230 docs: update release notes 2021-09-15 10:27:00 +02:00
Andras Banki-Horvath ef7e46bc2e travis: fix ARM and Windows itest parallelism 2021-09-15 10:26:52 +02:00
Andras Banki-Horvath 23ded04ff5 docs: update release notes 0.14 2021-09-14 13:12:23 +02:00
Andras Banki-Horvath 3648f2fa4b payments: prefetch payment on hot paths 2021-09-14 13:12:23 +02:00
Andras Banki-Horvath 152d1dc36a kvdb: extra test coverage for kvdb.Prefetch 2021-09-14 13:12:23 +02:00
Andras Banki-Horvath 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
Andras Banki-Horvath 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
Andras Banki-Horvath 400cc0eb96 docs: update release-notes-0.14.0.md 2021-09-10 14:40:58 +02:00
Andras Banki-Horvath 9bf04f9870 itest+etcd: save etcd logs along the node logs 2021-09-10 14:40:57 +02:00
Andras Banki-Horvath 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
Andras Banki-Horvath f2cc783043 docs: update release-notes-0.14.0.md 2021-09-07 10:46:50 +02:00
Andras Banki-Horvath 204966db40 channeldb: migration to flatten the htlc attempts bucket 2021-09-07 10:46:49 +02:00
Andras Banki-Horvath 63d7f5fca7 channeldb: flatten the payment-htlcs-bucket 2021-09-07 10:46:46 +02:00
Andras Banki-Horvath b1288ae233 docs: update release-notes-0.14.0.md 2021-09-06 21:46:23 +02:00
Andras Banki-Horvath b07bcde482 ci: switch Travis ARM integration test to use bitcoind 2021-09-06 21:46:20 +02:00
Andras Banki-Horvath c5c956bbef lnrpc: add BatchOpenChannel RPC 2021-09-02 12:13:47 +02: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
Andras Banki-Horvath ccd890b098 docs: update release notes 2021-08-06 17:37:40 +02:00
Andras Banki-Horvath 0f400b2b16 itests: payments test flake fix 2021-08-06 17:37:37 +02:00
András Bánki-Horváth 254d9be6ff Merge pull request #5513 from bhandras/commit_queue_fix
etcd: fix dereferencing issue in commit queue causing contention and change design to be more scalable
2021-08-06 09:26:40 +02:00
Andras Banki-Horvath e243be1ba2 docs: update 0.14.0 release notes 2021-08-06 07:53:14 +02:00
Andras Banki-Horvath b29ae94e10 etcd: redesign commit queue to make it more robust and scalable
This commit builds on the ideas of @cfromknecht in lnd/5153. The
addition is that the design is now simpler and more robust by queueing
up everything, but allowing maximal parallelism where txns don't block.
Furthermore the commit makes CommitQueue.Done() private essentially
removing the need to understand the queue externally.
2021-08-06 07:53:13 +02:00
Andras Banki-Horvath 02aa77261d etcd: fix dereferncing issue in etcd.CommitQueue causing contention
This commit fixes an issue where subsequent transaction retries may have
changed the read/write sets inside the STM which in turn left junk
references to these keys in the CommitQueue. The left keys potentially
conflicted with subsequent transactions, queueing them up causing
througput degradation.
2021-08-06 07:53:10 +02:00
Andras Banki-Horvath 7da0b80674 docs: update 0.14 release notes 2021-07-27 13:57:09 +02:00
Andras Banki-Horvath f54c127021 itest: fix async payment benchmark timeout flakes 2021-07-27 13:57:09 +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
Andras Banki-Horvath f13a348c97 config: update sample-lnd.conf with routerrpc.mcflushinterval 2021-07-26 17:02:14 +02:00
Andras Banki-Horvath 6d80ddfe91 routing: store missioncontrol state in blocks and eliminate cursor use
This commit changes missioncontrol's store update from per payment to
every second. Updating the missioncontrol store on every payment caused
gradual slowdown when using etcd.
We also completely eliminate the use of the cursor, further reducing
the performance bottleneck.
2021-07-26 17:02:11 +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
Andras Banki-Horvath 798bf05838 build: add itest-race build target to catch data races with itests
This commit adds itest-race build target that can be used with
individual itests to detect and catch uncovered data races.
2021-07-22 15:15:35 +02:00
Andras Banki-Horvath 9ce5585eff docs: update release notes 2021-07-21 16:36:13 +02:00
Andras Banki-Horvath f33b5a4057 payments: allocate payment sequences in blocks
The bucket sequence we use as payment sequence makes the DB update in
InitPayment conflict and therefore queue up when many concurrent
payments happen. This change allocates payment sequences in blocks
of 1000 to avoid these conflicts.
2021-07-21 16:36:10 +02:00
Andras Banki-Horvath dd05e29225 docs: update release notes 2021-07-20 21:02:16 +02:00
Andras Banki-Horvath bc4ffb489d etcd: optionally reduce concurrency to single writer for legacy code 2021-07-20 21:02:11 +02:00
Andras Banki-Horvath 96caa6f242 etcd: remove assertion when creating bucket and value with the same key
This commit removes an assertion which is not needed because with etcd
we can safely create keys and values with the same key since they are
stored under different keys in the DB. This saves us one unnecessary Get
on every Put.
2021-07-16 16:06:32 +02:00
Andras Banki-Horvath 11a44a94b1 etcd: remove unnecessary iterator step from cursor Delete
The etcd cursor Delete stepped to the next item in the range before
Delete to not invalidate the iteation. This is unnecessary and not
compatible with bbolt, resulting in an extra fetch too.
2021-07-16 15:21:14 +02:00
Andras Banki-Horvath 6dc64f7d2f etcd: disable excessive logging when using embedded etcd 2021-07-15 15:35:38 +02:00
Andras Banki-Horvath 7ce3223919 harness: remove killed nodes from active nodes 2021-07-15 11:26:27 +02:00
Andras Banki-Horvath f41771ce54 docs: leader election docs 2021-07-06 16:21:26 +02:00
Andras Banki-Horvath fc139d9bb8 kvdb: add ForEachBucket implementation 2021-05-13 10:35:35 +02:00
Andras Banki-Horvath 3c6f036bee kvdb: make lnd/kvdb a submodule 2021-05-07 14:18:57 +02:00
Andras Banki-Horvath 14c851c8fc kvdb: move channeldb/kvdb to top level 2021-05-07 14:18:56 +02:00
Andras Banki-Horvath ad586c6bf1 healthcheck: separate lnd/healthcheck into submodule 2021-05-05 15:33:19 +02:00
Andras Banki-Horvath cee832b749 healthcheck: disable default healthcheck logger
Disable logging by default in the healthcheck submodule to cut
dependency on lnd/build as we are hooking the logger separately
during lnd init.
2021-05-05 15:33:14 +02:00
Andras Banki-Horvath dd14947154 lint: silence depreciation warnings 2021-05-04 17:33:14 +02:00
Andras Banki-Horvath 80bc46e614 lint: fix proto message no-copy linter warnings 2021-05-04 17:33:14 +02:00
Andras Banki-Horvath 9aacc35989 lnrpc: add GetState to stateservice (v1/state)
This commit adds a new GetState call to the state service in order to
make leader election integrate simply with k8s using a readinessProbe.
2021-05-04 17:33:13 +02:00
Andras Banki-Horvath 7caf26ce94 itest: add itest for failover after forcefull shutdown 2021-05-04 17:33:12 +02:00
Andras Banki-Horvath 5d8488871c itest: basic failover itest when using leader election on etcd 2021-05-04 17:33:12 +02:00
Andras Banki-Horvath 5e215a7a66 lnrpc: add "waiting to start" state to state service
This commit adds a new "waiting to start" state which may be used to
query if we're still waiting to become the cluster leader. Once leader
we advance the state to "wallet not exist" or "wallet locked" given
wallet availablity.
2021-05-04 17:33:11 +02:00
Andras Banki-Horvath b6a620e6b2 misc: add ability to store the wallet in the remote DB 2021-05-04 17:33:11 +02:00
Andras Banki-Horvath 08be03367a walletunlocker: extract method to create the Loader 2021-05-04 17:33:10 +02:00
Andras Banki-Horvath c190c3d582 etcd: update etcd to 3.4.14 2021-05-04 17:33:09 +02:00