Commit b0f3249
committed
More user-friendly error message if UTXO DB runs ahead of block DB
This gives LoadChainTip a return value - allowing it to indicate that
the UTXO DB ran ahead of the block DB. This just provides a nicer
error message instead of the previous mysterious
assert(!setBlockIndexCandidates.empty()) error.
This also calls ActivateBestChain in case we just loaded the genesis
block in LoadChainTip, avoiding relying on the ActivateBestChain
in ThreadImport before continuing init process.1 parent eda888e commit b0f3249
3 files changed
+24
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1442 | 1442 | | |
1443 | 1443 | | |
1444 | 1444 | | |
1445 | | - | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
1446 | 1454 | | |
1447 | 1455 | | |
1448 | 1456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3538 | 3538 | | |
3539 | 3539 | | |
3540 | 3540 | | |
3541 | | - | |
| 3541 | + | |
3542 | 3542 | | |
3543 | | - | |
| 3543 | + | |
| 3544 | + | |
| 3545 | + | |
| 3546 | + | |
| 3547 | + | |
| 3548 | + | |
| 3549 | + | |
| 3550 | + | |
| 3551 | + | |
| 3552 | + | |
| 3553 | + | |
3544 | 3554 | | |
3545 | 3555 | | |
3546 | 3556 | | |
3547 | 3557 | | |
3548 | | - | |
| 3558 | + | |
3549 | 3559 | | |
3550 | 3560 | | |
3551 | 3561 | | |
| |||
3554 | 3564 | | |
3555 | 3565 | | |
3556 | 3566 | | |
| 3567 | + | |
3557 | 3568 | | |
3558 | 3569 | | |
3559 | 3570 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
| 265 | + | |
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| |||
0 commit comments