Skip to content

Clean up overlong function handle_finalized_block in DKG actor #2697

@SuperFluffy

Description

@SuperFluffy

Describe the bug

handle_finalized_block in the DKG actor has close to 200 lines and is painful to read. Worse, there is an early return in the middle of it, which is hard to see.

Clean up the function body to make it easier to understand what's going on.

1:

async fn handle_finalized_block<TStorageContext, TSender>(

2:

Steps to reproduce

N/A

Logs


Platform(s)

No response

Container Type

Not running in a container

What version/commit are you on?

ed3c639

If you've built from source, provide the full command you used

No response

Code of Conduct

  • I agree to follow the Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-needs-triageThis issue needs to be labelled

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions