mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-11 14:54:12 +00:00
5115aaedb7
* early exit `commonAncestor` when comparing with `finalizedHead` As all `BlockRef` lead to `finalizedHead` (`parent == nil`), can shortcut in that situation and immediately return `finalizedHead` if passed as one of the arguments. * typo in comment * add test from #5152 Co-authored-by: tersec <tersec@users.noreply.github.com> * add note about test complexity * regenerate test summary --------- Co-authored-by: tersec <tersec@users.noreply.github.com>