Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
turbine::broadcast_stage:
then_some/ok_or_else
=> if
`if/else` seems easier to follow, as it produces less nesting. Assignment of `self.chained_merkle_root` into `chained_merkle_root`, that is then assigned back into `self.chained_merkle_root` is a no-op. While I can see how it is separating the computation of the `chained_merkle_root` for the current step from the update of the `self`, I think, overall, it is more confusing then helpful. The `Finish previous slot ...` comment is actually part of a multi-paragraph sequence of steps, that document the whole `process_receive_results()`. Step number was accidentally removed in `#1057`: commit 6b45dc9 Author: behzad nouri <[email protected]> Date: Fri May 3 20:20:10 2024 +0000 retains chained Merkle root across leader slots (#1057)
- Loading branch information