Skip to content

Conversation

Dyslex7c
Copy link
Contributor

Closes #1053

@barnabasbusa
Copy link
Collaborator

Thats just fixing it for one example.
We want a fix that will fix it for each run where there is only a single lh participant.

@Dyslex7c
Copy link
Contributor Author

Thats just fixing it for one example. We want a fix that will fix it for each run where there is only a single lh participant.

got it, will update this PR soon

@Dyslex7c
Copy link
Contributor Author

I guess the --target-peers=0 parameter is enough to fix this problem, although this might cause issues for multiple participants (> 2) @barnabasbusa please do check my latest commit and correct me if I'm wrong

@barnabasbusa
Copy link
Collaborator

You need to have it as an optional flag set under lighthouse, depending on how many participants each run has.

@Dyslex7c
Copy link
Contributor Author

@barnabasbusa I've added the required condition in the starlark file, do let me know if there are any more changes to be made

@barnabasbusa
Copy link
Collaborator

Your PR doesn't seem to be working.

@barnabasbusa barnabasbusa marked this pull request as draft June 26, 2025 11:54
@barnabasbusa
Copy link
Collaborator

Please only convert the pr back to open if you have actually tested your own pr.

@Dyslex7c
Copy link
Contributor Author

@barnabasbusa I tested my PR with both a single participant and two participants and it seems to be working. Here are the screenshots based on which I concluded
image
Screenshot 2025-06-26 at 5 56 02 PM

@barnabasbusa
Copy link
Collaborator

its not appending the target-peers=0 with 1 participant only.

You can inspect the running container or run with --verbosity detailed

@Dyslex7c
Copy link
Contributor Author

@barnabasbusa I moved the logic to main.star from participant_network.star for debugging and it seems to work, don't know what went wrong. Can I keep the logic inside main.star? I guess there won't be a problem since I'm checking the cl_type anyways
image

@Dyslex7c Dyslex7c marked this pull request as ready for review June 30, 2025 18:20
@Dyslex7c
Copy link
Contributor Author

@barnabasbusa I've made changes and tested the PR, it is now appending --target-peers=0 for just one lighthouse participant

@barnabasbusa barnabasbusa enabled auto-merge (squash) July 11, 2025 11:21
@barnabasbusa barnabasbusa merged commit 6d29b3a into ethpandaops:main Jul 11, 2025
14 checks passed
@mininny
Copy link
Contributor

mininny commented Jul 21, 2025

@barnabasbusa I think this PR breaks existing usecases where we create only one client pair in kurtosis and connect it to a running devnet/testnet (i.e. kurtosis-sync-text). Do you think this change makes sense to fix this? #1119

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lighthouse only participant

3 participants