Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

The test_sync integration test doesn't call on_block_imported #6033

@tomaka

Description

@tomaka

The documentation of NetworkWorker::on_block_imported mentions that it is mandatory to call it after importing a block. However our test_sync integration test doesn't do that.

This test is extremely intricate and consists in a bunch of components glued together like spaghettis cooked for too long and without oil. I have no idea how to fix that problem, and I'd recommend rewriting the test from scratch.

At the time of opening this issue, I'm about to introduce a performance-degrading hack in the network crate to bypass this problem. Please search for this issue number in the source code after fixing it.
EDIT: #5938

Metadata

Metadata

Assignees

No one assigned

    Labels

    I3-bugThe node fails to follow expected behavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions