Commit adf73ed
authored
fix: avoid re-inserting previous filter header on sync resume (#428)
On restart, `start_download()` unconditionally set `checkpoint_start_height`
which caused `process_cfheaders()` to store `previous_filter_header` at an
offset that already contained data, triggering a `debug_assert` panic.
Only set `checkpoint_start_height` when filter storage is empty not when resuming from existing stored state.1 parent eca3330 commit adf73ed
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
| |||
0 commit comments