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

Review peerChurnGovernor policy for genesis #3396

Closed
coot opened this issue Sep 27, 2021 · 0 comments · Fixed by #4832
Closed

Review peerChurnGovernor policy for genesis #3396

coot opened this issue Sep 27, 2021 · 0 comments · Fixed by #4832
Assignees
Labels
Genesis outbound-governor Issues / PRs related to outbound-governor technical debt

Comments

@coot
Copy link
Contributor

coot commented Sep 27, 2021

Comment:

    -- TODO: #3396 revisit the policy for genesis
    increaseActivePeers :: ChurnMode -> STM m ()
    increaseActivePeers mode =  do
        modifyTVar peerSelectionVar (\targets -> targets {
          targetNumberOfActivePeers =
              case mode of
                   ChurnModeNormal  ->
                       targetNumberOfActivePeers base
                   ChurnModeBulkSync ->
                       min 2 (targetNumberOfActivePeers base)
        })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Genesis outbound-governor Issues / PRs related to outbound-governor technical debt
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants