Skip to content

Conversation

@eclark0426
Copy link
Contributor

No description provided.

@eclark0426 eclark0426 self-assigned this Nov 20, 2025
Copilot AI review requested due to automatic review settings November 20, 2025 18:34
Copilot finished reviewing on behalf of eclark0426 November 20, 2025 18:35
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the sender and authority recovery logic to reduce code duplication by extracting the recovery process into a reusable function. The changes improve code maintainability by eliminating three nearly identical blocks of recovery code.

  • Introduces a new RecoveredSendersAndAuthorities struct to encapsulate recovery results
  • Creates a reusable recover_senders_and_authorities function that consolidates duplicated recovery logic
  • Replaces separate parent_senders_and_authorities and grandparent_senders_and_authorities variables with a circular buffer array indexed by block number modulo 3

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@eclark0426 eclark0426 force-pushed the ellis/ethloop-parents-refactor branch 2 times, most recently from e6b43f5 to affe07d Compare November 20, 2025 20:19
@jhunsaker jhunsaker force-pushed the ellis/ethloop-parents-refactor branch from affe07d to 69c863c Compare November 21, 2025 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants