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

Initialise local root peers result #4583

Merged
merged 3 commits into from Jun 6, 2023
Merged

Initialise local root peers result #4583

merged 3 commits into from Jun 6, 2023

Conversation

coot
Copy link
Contributor

@coot coot commented Jun 6, 2023

This patch fixes a bug where results TVar was never initialised if all
local root peers were provided with their IP addresses, and thus the
node didn't try to connect to any of its local root peers.

We add LocalRootPeersResult to TestTraceEvent which is used to track
values committed to the TVar which holds local root peers with
resolved dns names. It is more robust to use traceTVarIO than to
relay on TraceLocalRootPeers events, as we can force the latter to be
traced even if there's no dns name to be resolved. This captures the
case where local root peers contains only IP addresses.

This patch fixes a bug where results `TVar` was never initialised if all
local root peers were provided with their IP addresses, and thus the
node didn't try to connect to any of its local root peers.

We add `LocalRootPeersResult` to `TestTraceEvent` which is used to track
values committed to the `TVar` which holds local root peers with
resolved dns names.  It is more robust to use `traceTVarIO` than to
relay on `TraceLocalRootPeers` events, as  we can force the latter to be
traced even if there's no dns name to be resolved.  This captures the
case where local root peers contains only IP addresses.
@coot coot requested a review from bolt12 June 6, 2023 05:39
@coot coot mentioned this pull request Jun 6, 2023
@coot coot self-assigned this Jun 6, 2023
@coot coot added networking DNS Issues / PRs related to DNS labels Jun 6, 2023
@coot coot added this pull request to the merge queue Jun 6, 2023
Merged via the queue into master with commit 9aa6977 Jun 6, 2023
9 checks passed
@coot coot deleted the coot/lrp-fix branch June 6, 2023 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DNS Issues / PRs related to DNS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants