Commit dd2de47
committed
Fix fast-shutdown crash if genesis block was not loaded
If the ShutdownRequested() check at the top of ActivateBestChain()
returns false during initial genesis block load we will fail an
assertion in UTXO DB flush as the best block hash IsNull(). To work
around this, we move the check until after one round of
ActivateBestChainStep(), ensuring the genesis block gets connected.1 parent 1c9394a commit dd2de47
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2581 | 2581 | | |
2582 | 2582 | | |
2583 | 2583 | | |
2584 | | - | |
2585 | | - | |
2586 | | - | |
2587 | 2584 | | |
2588 | 2585 | | |
2589 | 2586 | | |
| |||
2630 | 2627 | | |
2631 | 2628 | | |
2632 | 2629 | | |
| 2630 | + | |
| 2631 | + | |
| 2632 | + | |
| 2633 | + | |
| 2634 | + | |
| 2635 | + | |
| 2636 | + | |
2633 | 2637 | | |
2634 | 2638 | | |
2635 | 2639 | | |
| |||
0 commit comments