Skip to content

Commit fa2a255

Browse files
committed
Introduce KVStore trait and FilesystemStore impl
Rather than further relying on the upstream `KVStorePersister`/`KVStoreUnpersister`, we here implement a general `KVStore` trait that allows access to `Read`s/`TransactionalWrite`s which may be used to deserialize/serialize data via the `Readable`/`Writeable` implementations. Notably `TransactionalWrite` is a `Write` for which the written data needs to be explictly `commit`ed, asserting that we always persist either the whole new change or no change at all. Additionally, we avoid the `Info` umbrella term but opt to introduce `PaymentDetails` to align naming with upcoming `PeerDetails` and `ChannelDetails`.
1 parent 3b1be8d commit fa2a255

11 files changed

+1354
-427
lines changed

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ libc = "0.2"
6666
electrsd = { version = "0.22.0", features = ["legacy", "esplora_a33e97e1", "bitcoind_23_0"] }
6767
electrum-client = "0.12.0"
6868
proptest = "1.0.0"
69+
regex = "1.5.6"
6970

7071
[profile.release]
7172
panic = "abort"

0 commit comments

Comments
 (0)