Skip to content

feat: deprecate --detach flag in forest #5652

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

Merged
merged 12 commits into from
May 28, 2025
Merged

feat: deprecate --detach flag in forest #5652

merged 12 commits into from
May 28, 2025

Conversation

hanabi1224
Copy link
Contributor

@hanabi1224 hanabi1224 commented May 19, 2025

Summary of changes

Changes introduced in this pull request:

  • Remove --detach flag from forest.

Reference issue to close (if applicable)

Closes

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.

@@ -7,10 +7,6 @@ source "$(dirname "$0")/harness.sh"

forest_init_stateless

echo "Verifying the heaviest tipset to be the genesis"
Copy link
Contributor Author

@hanabi1224 hanabi1224 May 27, 2025

Choose a reason for hiding this comment

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

This has been changed in the new chain follower, Forest now follows chain head without any validation. it will fail on main if we sleep for a few seconds.

    /// When `stateless_mode` is true, forest connects to the P2P network but
    /// does not execute any state transitions. This drastically reduces the
    /// memory and disk footprint of Forest but also means that Forest will not
    /// be able to validate the correctness of the chain.
    stateless_mode: bool,

@hanabi1224 hanabi1224 marked this pull request as ready for review May 27, 2025 15:21
@hanabi1224 hanabi1224 requested a review from a team as a code owner May 27, 2025 15:21
@hanabi1224 hanabi1224 requested review from LesnyRumcajs and sudo-shashank and removed request for a team May 27, 2025 15:21
CHANGELOG.md Outdated
@@ -43,6 +43,8 @@

### Removed

-[#5652](https://github.com/ChainSafe/forest/pull/5652) Remove `--detach` flag from `forest`.
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 link to the README entry on this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Comment on lines +46 to +47
-[#5652](https://github.com/ChainSafe/forest/pull/5652) Remove `--detach` flag from `forest`. Checkout the [migration guide](https://github.com/ChainSafe/forest#detaching-forest-process)

Copy link
Member

Choose a reason for hiding this comment

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

I'd add it to the section of breaking changes for visibility.

Copy link
Member

@LesnyRumcajs LesnyRumcajs left a comment

Choose a reason for hiding this comment

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

LGTM. Please make the description of the PR is complete.

@hanabi1224 hanabi1224 added this pull request to the merge queue May 28, 2025
Merged via the queue into main with commit 6425e6b May 28, 2025
44 checks passed
@hanabi1224 hanabi1224 deleted the hm/no-detach branch May 28, 2025 09:47
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.

3 participants