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

inbound governor error handling #4871

Merged
merged 1 commit into from
May 7, 2024
Merged

inbound governor error handling #4871

merged 1 commit into from
May 7, 2024

Conversation

coot
Copy link
Contributor

@coot coot commented May 1, 2024

Description

inbound-governor: error handling

The inbound governor error handler is there only to show final
transitions, mostly for testing purposes. We can pass the map of remote
states through PublicInboundGovernorState rather than hold whole
InboundGovernorState in a mutable variable.

This allows the main loop of inbound governor to have access to the
InboudnGovernorState directly as an argument, making it clearer how it
can be used.

The PR should be merged after #4868, only the last commit matters.

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.

@coot coot added the inbound-governor Issues / PRs related to inbound-governor label May 1, 2024
@coot coot requested a review from bolt12 May 1, 2024 11:18
@coot coot self-assigned this May 1, 2024
@coot coot requested a review from a team as a code owner May 1, 2024 11:18
@coot coot force-pushed the coot/inbound-governor-patch branch 3 times, most recently from e54c476 to 3b5d365 Compare May 6, 2024 13:53
The inbound governor error handler is there only to show final
transitions, mostly for testing purposes.  We can pass the map of remote
states through `PublicInboundGovernorState` rather than hold whole
`InboundGovernorState` in a mutable variable.

This allows the main loop of inbound governor to have access to the
`InboudnGovernorState` directly as an argument, making it clearer how it
can be used.
@coot coot force-pushed the coot/inbound-governor-patch branch from 3b5d365 to 2416f75 Compare May 7, 2024 16:35
@coot coot enabled auto-merge May 7, 2024 16:36
@coot coot added this pull request to the merge queue May 7, 2024
Merged via the queue into master with commit c5e2110 May 7, 2024
12 of 13 checks passed
@coot coot deleted the coot/inbound-governor-patch branch May 7, 2024 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inbound-governor Issues / PRs related to inbound-governor
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants