Commit 807ce37
authored
ChainSel.ReprocessLoEBlocks: avoid transient chain switches (#1617)
Closes #1616
The commits are intended to be reviewed individually.
- The first seven commits are preparatory refactorings of the existing
logic; they (intentionally) do not fix the bug, and actually might be of
independent interest, breaking up the huge `chainSelectionForBlock`
function.
Using structural diffing via eg
[difftastic](https://github.com/Wilfred/difftastic) might be useful
while reviewing.
- The last commit fixes the bug as described in #1616.File tree
4 files changed
+352
-391
lines changed- ouroboros-consensus
- changelog.d
- src/ouroboros-consensus/Ouroboros/Consensus/Storage/ChainDB/Impl
- test/storage-test/Test/Ouroboros/Storage/ChainDB
4 files changed
+352
-391
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments