Please sign in to comment.
Fix infinite loop in chain selection
When a candidate chain contains an invalid block, we take the valid prefix of that candidate and continue chain selection using that candidate. In the computation of that prefix, we were taking the prefix of the result of the computation instead of the original candidate and boom, infinite loop... We currently don't test with invalid blocks (on the list of TODOs!), so this wasn't detected before. This infinite loop was discovered when running the demo with `--real-pbft`, which can result in invalid blocks.
- Loading branch information...
Showing with 1 addition and 1 deletion.