Skip to content

Commit

Permalink
feat(node): update simple genesis doc (#1128)
Browse files Browse the repository at this point in the history
Co-authored-by: cryptoAtwill <[email protected]>
  • Loading branch information
cryptoAtwill and cryptoAtwill authored Aug 30, 2024
1 parent dd73ac2 commit 244d089
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion docs/fendermint/running.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,19 @@ $ cat test-network/genesis.json | jq .ipc
}
```

### Seal Genesis State
After the genesis file has been created, seal the genesis state and dump to a car file.

```shell
cargo run -p fendermint_app --release -- \
genesis --genesis-file test-network/genesis.json \
ipc \
seal-genesis \
--builtin-actors-path fendermint/builtin-actors/output/bundle.car \
--custom-actors-path fendermint/actors/output/custom_actors_bundle.car \
--output-path test-network/sealed.car
```

### Configure CometBFT

First, follow the instructions in [getting started with CometBFT](./tendermint.md) to install the binary,
Expand Down Expand Up @@ -238,7 +251,8 @@ file we created earlier to the format CometBFT accepts. Start with the genesis f
mv ~/.cometbft/config/genesis.json ~/.cometbft/config/genesis.json.orig
cargo run -p fendermint_app --release -- \
genesis --genesis-file test-network/genesis.json \
into-tendermint --out ~/.cometbft/config/genesis.json
into-tendermint --out ~/.cometbft/config/genesis.json \
--app-state test-network/sealed.car
```

Check the contents of the created Comet BFT Genesis file:
Expand Down

0 comments on commit 244d089

Please sign in to comment.