Skip to content

Conversation

@robinraju
Copy link
Contributor

Description

This PR adds integration tests for the newly introduced fast sync improvements (Concurrent download of headers)

Important Changes Introduced

Minor fixes were applied to the original implementation of FastSync, which prevented the branch resolution from being completed properly.

Testing

Run the tests and look through the logs for branch resolution when a malicious master peer is found.

@robinraju robinraju marked this pull request as draft March 22, 2021 10:20
@robinraju robinraju force-pushed the ETCM-521-integration-tests branch from 9f1e8ff to bd77cd1 Compare March 22, 2021 13:17
@robinraju robinraju marked this pull request as ready for review March 22, 2021 13:24
@robinraju robinraju requested a review from ten15bit March 22, 2021 13:24
@robinraju robinraju force-pushed the ETCM-521-integration-tests branch from 9c2080c to 39ab6b1 Compare March 24, 2021 14:03
Copy link
Contributor

@jvdp jvdp left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Did raise some questions, and I think more comments/descriptions would be nice to have for FakePeer DSL.

}
}

it should "switch to regular sync once `safeDownloadTarget` is reached" in customTestCaseResourceM(
Copy link
Contributor

Choose a reason for hiding this comment

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

Where do you assert that regular sync was initiated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the CommonFakePeer#waitForFastSyncFinish() helper method checks for the completion of Fastsync. More specific assertion can be made possible by intercepting the logs only. Maybe something to improve in another ticket to add support for intercepting logs in tests.

@milenkara milenkara self-requested a review March 29, 2021 14:15
@robinraju robinraju merged commit 595c95f into develop Mar 29, 2021
@dzajkowski dzajkowski deleted the ETCM-521-integration-tests branch April 9, 2021 12:00
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.

5 participants