Skip to content

Conversation

@amackillop
Copy link

Adds a few cherry-picks to read payments from VSS in parallel

@amackillop amackillop force-pushed the austin/parallel-vss-reads branch from 8dc83a9 to cabdcd9 Compare January 22, 2026 17:40
tnull added 2 commits January 22, 2026 10:42
Rather than using `KVStoreSync` we now use the async `KVStore`
implementation for most `read_X` util methods used during node building.

This is a first step towards making node building/startup entirely async
eventually.
Previously, we would read entries of our payment store sequentially.
This is more or less fine when we read from a local store, but when we
read from a remote (e.g., VSS) store, all the latency could result in
considerable slowdown during startup. Here, we opt to read store entries
in batches.
@amackillop amackillop changed the title Parallel vss reads Parallelize read_payments Jan 22, 2026
Add integration test that verifies 200 payments are correctly
persisted and retrievable via `list_payments` after restarting
a node.

Co-Authored-By: Claude AI
@amackillop amackillop force-pushed the austin/parallel-vss-reads branch from cabdcd9 to 80a170f Compare January 22, 2026 18:58
@amackillop amackillop merged commit cdf8eff into lsp-0.7.0 Jan 22, 2026
6 of 34 checks passed
f3r10 pushed a commit that referenced this pull request Jan 22, 2026
* Use async `KVStore` for `read_X` util methods

Rather than using `KVStoreSync` we now use the async `KVStore`
implementation for most `read_X` util methods used during node building.

This is a first step towards making node building/startup entirely async
eventually.

* Parallelize `read_payments`

Previously, we would read entries of our payment store sequentially.
This is more or less fine when we read from a local store, but when we
read from a remote (e.g., VSS) store, all the latency could result in
considerable slowdown during startup. Here, we opt to read store entries
in batches.

* Add test for payment persistence after node restart

Add integration test that verifies 200 payments are correctly
persisted and retrievable via `list_payments` after restarting
a node.

Co-Authored-By: Claude AI

---------

Co-authored-by: Elias Rohrer <dev@tnull.de>
f3r10 pushed a commit that referenced this pull request Jan 22, 2026
* Use async `KVStore` for `read_X` util methods

Rather than using `KVStoreSync` we now use the async `KVStore`
implementation for most `read_X` util methods used during node building.

This is a first step towards making node building/startup entirely async
eventually.

* Parallelize `read_payments`

Previously, we would read entries of our payment store sequentially.
This is more or less fine when we read from a local store, but when we
read from a remote (e.g., VSS) store, all the latency could result in
considerable slowdown during startup. Here, we opt to read store entries
in batches.

* Add test for payment persistence after node restart

Add integration test that verifies 200 payments are correctly
persisted and retrievable via `list_payments` after restarting
a node.

Co-Authored-By: Claude AI

---------

Co-authored-by: Elias Rohrer <dev@tnull.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants