- Copy
go-state-types/builtin/vX
togo-state-types/builtin/v(X+1)
- Change all references to
vX
in the new files tov(X+1)
- Add new network version to
network/version.go
- Add new actors version to
actors/version.go
1 - Add the new version to the
gen
step of the makefile`2 - run
make gen
Footnotes
-
Steps:
- Add a new constant: Add a new constant in the list of versions. The new constant's name should follow the existing naming convention - i.e.,
VersionXX+1 Version = XX+1
, where XX+1 is the new version number. - Update
VersionForNetwork
function: Inversion.go
, there's a function calledVersionForNetwork
that accepts a network version and returns the corresponding actor version. Add a new case line for the network version that corresponds to the new actor version you're adding - i.e,network.Version(XX+1): return Version(XX+1), nil
- Add a new constant: Add a new constant in the list of versions. The new constant's name should follow the existing naming convention - i.e.,
-
Add
$(GO_BIN) run ./builtin/v(XX+1)/gen/gen.go
↩