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

fix(f3): F3 sidecar should work with Kademlia disabled #5111

Merged
merged 6 commits into from
Jan 8, 2025

Conversation

hanabi1224
Copy link
Contributor

@hanabi1224 hanabi1224 commented Jan 7, 2025

Summary of changes

This PR introduces a second internal Kademlia for bootstrapping F3 when the node Kademlia is disabled.

Changes introduced in this pull request:

  • add a second internal Kademlia
  • update test scripts accordingly

Reference issue to close (if applicable)

Closes #5065

Other information and links

Change checklist

  • I have performed a self-review of my own code,
  • I have made corresponding changes to the documentation. All new code adheres to the team's documentation standards,
  • I have added tests that prove my fix is effective or that my feature works (if possible),
  • I have made sure the CHANGELOG is up-to-date. All user-facing changes should be reflected in this document.

@hanabi1224 hanabi1224 changed the title feat(f3): F3 sidecar should work with Kademlia disabled fix(f3): F3 sidecar should work with Kademlia disabled Jan 7, 2025
@hanabi1224 hanabi1224 marked this pull request as ready for review January 7, 2025 15:59
@hanabi1224 hanabi1224 requested a review from a team as a code owner January 7, 2025 15:59
@hanabi1224 hanabi1224 requested review from LesnyRumcajs and elmattic and removed request for a team January 7, 2025 15:59
$FOREST_PATH --chain calibnet --encrypt-keystore false --mdns false --kademlia false --auto-download-snapshot --log-dir "$LOG_DIRECTORY" --detach --save-token ./admin_token
$FOREST_PATH --chain calibnet --encrypt-keystore false --mdns false --kademlia false --auto-download-snapshot --log-dir "$LOG_DIRECTORY" --save-token ./admin_token &
FOREST_NODE_PID=$!
sleep 10s # to allow admin_token being saved
Copy link
Member

Choose a reason for hiding this comment

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

Let's avoid sleeping (and potential flakiness) by first running Forest with --exit-after-init and then starting the node in the background. Would that work?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great idea! Fixed.

@LesnyRumcajs
Copy link
Member

No green checkmark!

@hanabi1224 hanabi1224 added this pull request to the merge queue Jan 8, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 8, 2025
@hanabi1224 hanabi1224 added this pull request to the merge queue Jan 8, 2025
Merged via the queue into main with commit 24cb91f Jan 8, 2025
36 checks passed
@hanabi1224 hanabi1224 deleted the hm/f3-backup-kad branch January 8, 2025 11:44
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.

[F3] Improve error message when Kademlia is disabled on the associated Forest node.
3 participants