Commit 312f542
committed
Merge bitcoin#29726: assumeutxo: Fix -reindex before snapshot was validated
b7ba60f test: add coverage for -reindex and assumeutxo (Martin Zumsande)
e57f951 init, validation: Fix -reindex option with an existing snapshot (Martin Zumsande)
Pull request description:
In c711ca1 logic was introduced that `-reindex` and `-reindex-chainstate` will delete the snapshot chainstate.
This doesn't work currently, instead of deleting the snapshot chainstate the node crashes with an assert (this can be triggered by applying the added test commit on master).
Fix this, and another bug that would prevent the new active chainstate from having a mempool after `-reindex` has deleted the snapshot (also covered by the test).
ACKs for top commit:
fjahr:
re-ACK b7ba60f
hernanmarino:
crACK b7ba60f . Good fix
BrandonOdiwuor:
re-ACK b7ba60f
byaye:
Tested ACK b7ba60f
Tree-SHA512: c168f36997d7677d590af37b10427870f5d30123abf1c76032a16661e486735373bfa7e049e6aca439526fbcb6d619f970bf9d042196c851bf058a75a32fafdc2 files changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6142 | 6142 | | |
6143 | 6143 | | |
6144 | 6144 | | |
6145 | | - | |
| 6145 | + | |
6146 | 6146 | | |
6147 | 6147 | | |
6148 | 6148 | | |
6149 | 6149 | | |
6150 | 6150 | | |
6151 | 6151 | | |
| 6152 | + | |
6152 | 6153 | | |
6153 | 6154 | | |
6154 | 6155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 14 | | |
18 | 15 | | |
19 | 16 | | |
| |||
379 | 376 | | |
380 | 377 | | |
381 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
382 | 390 | | |
383 | 391 | | |
384 | 392 | | |
| |||
0 commit comments