Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor PostMergeBlocksSyncPeerAllocationStrategy refactor #4546

Merged
merged 1 commit into from
Sep 21, 2022

Conversation

asdacap
Copy link
Contributor

@asdacap asdacap commented Sep 9, 2022

Extract speed related logic to BySpeedStrategy.

Changes:

  • Extract speed related logic to BySpeedStrategy.
  • Added some unit test.

Types of changes

What types of changes does your code introduce?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Other (please describe):

Testing

Requires testing

  • Yes
  • No

In case you checked yes, did you write tests??

  • Yes
  • No

Comments about testing , should you have some (optional)

Goerli can sync to head

Further comments (optional)

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

@dceleda
Copy link
Contributor

dceleda commented Sep 19, 2022

Probably needs to be rabased (157 modifications)

@asdacap asdacap force-pushed the minor-refactor-extract-byspeed-strategy-logic branch from c4a9c07 to c888360 Compare September 20, 2022 07:43
@asdacap
Copy link
Contributor Author

asdacap commented Sep 20, 2022

Rebased, should be only 3 files.

Copy link
Contributor

@MarekM25 MarekM25 left a comment

Choose a reason for hiding this comment

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

Looks ok. We can merge it to develop for sure :) but let's make sure we run smoke tests before merging to master

}

long averageTransferSpeed = GetSpeed(nodeStatsManager, info) ?? 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

hmmm did we remove it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It all goes to BySpeedStrategy

@asdacap
Copy link
Contributor Author

asdacap commented Sep 21, 2022

I dont thing anything will go to master anymore

@asdacap asdacap merged commit 5362322 into develop Sep 21, 2022
@asdacap asdacap deleted the minor-refactor-extract-byspeed-strategy-logic branch September 21, 2022 11:37
smartprogrammer93 pushed a commit that referenced this pull request Sep 27, 2022
smartprogrammer93 pushed a commit that referenced this pull request Sep 27, 2022
smartprogrammer93 pushed a commit that referenced this pull request Sep 27, 2022
asdacap added a commit that referenced this pull request Sep 29, 2022
…ategy to BySpeedStrategy (#4546) (#4659)

Co-authored-by: Amirul Ashraf <asdacap@gmail.com>
Andrew-Pohl pushed a commit to fuseio/nethermind that referenced this pull request Oct 7, 2022
…ategy to BySpeedStrategy (NethermindEth#4546) (NethermindEth#4659)

Co-authored-by: Amirul Ashraf <asdacap@gmail.com>
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.

3 participants