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

docs: filter and compress butterflynet.car file #1628

Merged
merged 2 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lotus-ansible-reset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ jobs:
build_flags: ""
reset: "true"
delay: "0"
check: ${{ inputs.dry-run || 'true' }}
check: ${{ inputs.dry-run }}
10 changes: 7 additions & 3 deletions Reset_Butterfly_Network.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@ Confirm that the workflow completes successfully, and proceed with the actual Bu

2. Extract the `lotus.tar` file inside of your downloaded `reset-artifacts`.

3. Commit the new `genesis/butterflynet.car` file to `https://github.com/filecoin-project/lotus/tree/master/build/genesis`, replacing the old `butterflynet.car` file.
3. Prepare `build/genesis/butterflynet.car`:
1. Remove built-in actors WASM compiles from the bundle *(install https://github.com/ipld/go-car/ for the `car` command)*: `car ls build/genesis/butterflynet.car | grep ^bafk2bz | car filter --inverse build/genesis/butterflynet.car butterflynet.car` - this will result in a new `butterflynet.car` in the current working directory.
2. Compress `butterflynet.car` with `zstd -19 butterflynet.car`.

4. Commit the new `bootstrap/butterflynet.pi` file to `https://github.com/filecoin-project/lotus/tree/master/build/bootstrap`, replacing the old `butterflynet.pi` file.
4. Commit the new `butterflynet.car.zst` file to `https://github.com/filecoin-project/lotus/tree/master/build/genesis` replacing the old `butterflynet.car.zst` file.

👉 Example of a PR submitting the artifacts to [Lotus can be seen here](https://github.com/filecoin-project/lotus/pull/12266).
5. Commit the new `bootstrap/butterflynet.pi` file to `https://github.com/filecoin-project/lotus/tree/master/build/bootstrap`, replacing the old `butterflynet.pi` file.

👉 Example of a PR submitting the artifacts to [Lotus can be seen here](https://github.com/filecoin-project/lotus/pull/12266).
Loading