Skip to content

Commit d827772

Browse files
committed
Upstream VssStoreBuilder and VssStore to lightning-persister
Since the beginning of VSS we intended to upstream the corresponding `KVStore` implementation to `lightning-persister`. Here, we finally do it. Signed-off-by: Elias Rohrer <dev@tnull.de>
1 parent 98393b3 commit d827772

File tree

4 files changed

+978
-0
lines changed

4 files changed

+978
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,5 @@ check-cfg = [
6868
"cfg(simple_close)",
6969
"cfg(peer_storage)",
7070
"cfg(tor)",
71+
"cfg(vss_test)",
7172
]

lightning-persister/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,15 @@ rustdoc-args = ["--cfg", "docsrs"]
1717

1818
[features]
1919
tokio = ["dep:tokio"]
20+
vss = ["dep:vss-client", "dep:tokio", "dep:rand", "dep:lightning-macros"]
2021

2122
[dependencies]
2223
bitcoin = "0.32.2"
2324
lightning = { version = "0.3.0", path = "../lightning" }
25+
lightning-macros = { version = "0.2.0", path = "../lightning-macros", optional = true }
2426
tokio = { version = "1.35", optional = true, default-features = false, features = ["rt-multi-thread"] }
27+
vss-client = { package = "vss-client-ng", version = "0.4", optional = true }
28+
rand = { version = "0.9.2", default-features = false, features = ["thread_rng"], optional = true }
2529

2630
[target.'cfg(windows)'.dependencies]
2731
windows-sys = { version = "0.48.0", default-features = false, features = ["Win32_Storage_FileSystem", "Win32_Foundation"] }

lightning-persister/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ extern crate criterion;
1010

1111
pub mod fs_store;
1212

13+
#[cfg(feature = "vss")]
14+
pub mod vss_store;
15+
1316
mod utils;
1417

1518
#[cfg(test)]

0 commit comments

Comments
 (0)