Commit fbc7d63
committed
feat: add utilities for testing persistence
Added the following functions to test if persistence of `bdk_chain` is
happening correctly.
- `persist_txgraph_changeset`
- `persist_indexer_changeset`
- `persist_local_chain_changeset`
- `persist_last_seen`, `persist_last_evicted`, `persist_first_seen`
- `persist_txouts`
- `persist_txs`
- `persist_anchors`
- `persist_last_revealed`
- `persist_spk_cache`
Even though the first three tests cover every part of the `ChangeSet`s ,
the other tests are retained so as to help in unit testing.1 parent 6292eba commit fbc7d63
3 files changed
+725
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
30 | | - | |
31 | 32 | | |
32 | 33 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
0 commit comments