Skip to content

Conversation

@crocodile-dentist
Copy link
Contributor

Description

Ensure timeout to enter sensitive state when bootstrap peers are enabled is always respected.

Checklist

Quality

  • Commit sequence makes sense and have useful messages, see ref.
  • New tests are added and existing tests are updated.
  • Self-reviewed the PR.

Maintenance

  • Linked an issue or added the PR to the current sprint of ouroboros-network project.
  • Added labels.
  • Updated changelog files.
  • The documentation has been properly updated, see ref.

Comment on lines 244 to 246
-- ensure this is run in case when peer selection has nothing else
-- that can wake the governor up.
GuardedSkip $ Cardano.bootstrapPeersTimeout (extraState pst)
Copy link
Collaborator

Choose a reason for hiding this comment

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

It would be better to add this to the guarded decision which actually needs to run. Isn't it this one waitForSystemToQuiesce?

Do we have a counter example to test 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.

I'll check for the test, if not I will write one.

Copy link
Contributor

@karknu karknu left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

4 participants