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

Fixes async demotions to Cold not being noticed #4734

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

bolt12
Copy link
Contributor

@bolt12 bolt12 commented Nov 29, 2023

Description

This fixes the bug where when a peer disconnected it could no longer be connected to due to the governor not picking it up.

@bolt12 bolt12 added bug Something isn't working networking outbound-governor Issues / PRs related to outbound-governor labels Nov 29, 2023
@bolt12 bolt12 requested a review from coot as a code owner November 29, 2023 11:49
@bolt12 bolt12 force-pushed the bolt12/fixColdDemotionsNotNoticed branch 2 times, most recently from ea9a2bf to 479668c Compare November 29, 2023 13:21
@bolt12 bolt12 force-pushed the bolt12/fixColdDemotionsNotNoticed branch from 479668c to 6f45934 Compare November 29, 2023 13:27
Copy link
Contributor

@coot coot left a comment

Choose a reason for hiding this comment

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

This looks good to me. Thanks @bolt12 for the fix.

I think we should also analyse why the tests we have didn't capture the bug in the first place. This could be because we don't have prop_governor_target_known_above in the simulated testnet, which in theory should be able to capture such a bug. However, this can be done as a follow up.

@bolt12 bolt12 enabled auto-merge November 29, 2023 15:25
@bolt12
Copy link
Contributor Author

bolt12 commented Nov 29, 2023

Yes there's an issue to write all PeerSelection tests into Testnet cases

@bolt12 bolt12 added this pull request to the merge queue Nov 29, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Nov 29, 2023
@disassembler disassembler added this pull request to the merge queue Nov 29, 2023
Merged via the queue into master with commit 5e5df6a Nov 29, 2023
9 checks passed
@disassembler disassembler deleted the bolt12/fixColdDemotionsNotNoticed branch November 29, 2023 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working outbound-governor Issues / PRs related to outbound-governor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants