From 5b52dbc090354ec3c634efef837cf8bfc7bd80a0 Mon Sep 17 00:00:00 2001 From: Phi-rjan Date: Wed, 24 Jul 2024 08:46:51 +0200 Subject: [PATCH] Update Building_a_network_skeleton.md (#12280) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update Building_a_network_skeleton.md with the steps needed for adding support for nvXX in lotus-shed cmd´s --- documentation/misc/Building_a_network_skeleton.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/documentation/misc/Building_a_network_skeleton.md b/documentation/misc/Building_a_network_skeleton.md index f071e4a38c5..fba4062041d 100644 --- a/documentation/misc/Building_a_network_skeleton.md +++ b/documentation/misc/Building_a_network_skeleton.md @@ -160,9 +160,13 @@ You can take a look at this [Filecoin-FFI PR as a reference](https://github.com/ 8. Add network version to `chain/state/statetree.go`. - Add `network.VersionXX+1` to `VersionForNetwork` function. -9. Run `make gen`. +9. Copy the latest version case block in `cmd/lotus-shed/invariants.go`, paste it below and increment the network version number. -10. Run `make docsgen-cli`. +10. In the [getMigrationFuncsForNetwork](https://github.com/filecoin-project/lotus/blob/4f63a0860542140e1efd7045ca49cab3463f6761/cmd/lotus-shed/migrations.go#L283-L301) function, add a new case for the latest network version, and create the corresponding `checkNvXXInvariants` function. + +11. Run `make gen`. + +12. Run `make docsgen-cli`. And you're done! These are all the steps necessary to create a network upgrade skeleton that you will be able to run in a local devnet, and creates a basis where you can start testing new FIPs. When running a local developer network from this Lotus branch, bringing in all it dependencies, you should be able to: