Commit ff64247
committed
feat: introduce and configure node with tiered KVStore
Introduces TierStore, a KVStore implementation that manages data
across three storage layers:
- Primary: Main/remote data store
- Ephemeral: Secondary store for non-critical, easily-rebuildable
data (e.g., network graph) with fast local access
- Backup: Tertiary store for disaster recovery with async/lazy
operations to avoid blocking primary store
Adds four configuration methods to NodeBuilder:
- set_tier_store_backup: Configure backup data store
- set_tier_store_ephemeral: Configure ephemeral data store
- set_tier_store_retry_config: Configure retry parameters with
exponential backoff
- build_with_tier_store: Build node with primary data store
These methods are exposed to the foreign interface via additions
in ffi/types.rs:
- ffi::SyncAndAsyncKVStore: Composed of KVStore and KVStoreSync
methods to handle the types::SyncAndAsyncKVStore supertrait
across FFI
- ffi::ForeignKVStoreAdapter and ffi::DynStore: Adapt/translate
between foreign language store and native Rust store
- Conditional compilation for DynStore: ffi::DynStore with uniffi,
types::DynStore without, with selection aided by the wrap_store!()
macro1 parent 650fd19 commit ff64247
File tree
22 files changed
+1971
-50
lines changed- bindings
- src
- chain
- ffi
- io
- payment/asynchronous
- wallet
- tests
- common
22 files changed
+1971
-50
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
58 | 64 | | |
59 | 65 | | |
60 | 66 | | |
| |||
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
79 | 135 | | |
80 | 136 | | |
81 | 137 | | |
| |||
104 | 160 | | |
105 | 161 | | |
106 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
107 | 166 | | |
108 | 167 | | |
109 | 168 | | |
| |||
116 | 175 | | |
117 | 176 | | |
118 | 177 | | |
| 178 | + | |
| 179 | + | |
119 | 180 | | |
120 | 181 | | |
121 | 182 | | |
| |||
0 commit comments