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

Open
coot opened this issue Sep 27, 2021 · 0 comments · May be fixed by #4832
Open

Review peerChurnGovernor policy for genesis #3396

coot opened this issue Sep 27, 2021 · 0 comments · May be 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)
        })
@coot coot added outbound-governor Issues / PRs related to outbound-governor technical debt tech-debt-h2 and removed tech-debt-h2 labels Aug 1, 2022
@crocodile-dentist crocodile-dentist self-assigned this Mar 5, 2024
@crocodile-dentist crocodile-dentist linked a pull request Mar 15, 2024 that will close this issue
9 tasks
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: In Progress
Development

Successfully merging a pull request may close this issue.

2 participants