diff --git a/api/types.go b/api/types.go index f3cf119bb3c..0de44549f38 100644 --- a/api/types.go +++ b/api/types.go @@ -331,4 +331,6 @@ type ForkUpgradeParams struct { UpgradeHyperdriveHeight abi.ChainEpoch UpgradeChocolateHeight abi.ChainEpoch UpgradeOhSnapHeight abi.ChainEpoch + UpgradeSkyrHeight abi.ChainEpoch + UpgradeSharkHeight abi.ChainEpoch } diff --git a/build/openrpc/full.json.gz b/build/openrpc/full.json.gz index 683a110a89f..681d19e4c42 100644 Binary files a/build/openrpc/full.json.gz and b/build/openrpc/full.json.gz differ diff --git a/documentation/en/api-v0-methods.md b/documentation/en/api-v0-methods.md index c80016260d3..27ab7bd0832 100644 --- a/documentation/en/api-v0-methods.md +++ b/documentation/en/api-v0-methods.md @@ -5442,7 +5442,9 @@ Response: "UpgradeTurboHeight": 10101, "UpgradeHyperdriveHeight": 10101, "UpgradeChocolateHeight": 10101, - "UpgradeOhSnapHeight": 10101 + "UpgradeOhSnapHeight": 10101, + "UpgradeSkyrHeight": 10101, + "UpgradeSharkHeight": 10101 } } ``` diff --git a/documentation/en/api-v1-unstable-methods.md b/documentation/en/api-v1-unstable-methods.md index 075e844ecd9..cbab6bfbf8c 100644 --- a/documentation/en/api-v1-unstable-methods.md +++ b/documentation/en/api-v1-unstable-methods.md @@ -5949,7 +5949,9 @@ Response: "UpgradeTurboHeight": 10101, "UpgradeHyperdriveHeight": 10101, "UpgradeChocolateHeight": 10101, - "UpgradeOhSnapHeight": 10101 + "UpgradeOhSnapHeight": 10101, + "UpgradeSkyrHeight": 10101, + "UpgradeSharkHeight": 10101 } } ``` diff --git a/documentation/misc/actors_version_checklist.md b/documentation/misc/actors_version_checklist.md index 5e6038c2b02..13af238b17e 100644 --- a/documentation/misc/actors_version_checklist.md +++ b/documentation/misc/actors_version_checklist.md @@ -11,3 +11,4 @@ - [ ] Schedule - [ ] Migration - [ ] Update upgrade schedule in `chain/sync_test.go` +- [ ] Add upgrade field to `api/types.go/ForkUpgradeParams` and update the implementation of StateGetNetworkParams diff --git a/node/impl/full/state.go b/node/impl/full/state.go index e2c3438bb16..f9b4f741c4e 100644 --- a/node/impl/full/state.go +++ b/node/impl/full/state.go @@ -1093,7 +1093,7 @@ func (a *StateAPI) StateListMessages(ctx context.Context, match *api.MessageMatc _, err := a.StateLookupID(ctx, match.To, tsk) // if the recipient doesn't exist at the start point, we're not gonna find any matches - if xerrors.Is(err, types.ErrActorNotFound) { + if xerrors.Is(err, &api.ErrActorNotFound{}) { return nil, nil } @@ -1104,7 +1104,7 @@ func (a *StateAPI) StateListMessages(ctx context.Context, match *api.MessageMatc _, err := a.StateLookupID(ctx, match.From, tsk) // if the sender doesn't exist at the start point, we're not gonna find any matches - if xerrors.Is(err, types.ErrActorNotFound) { + if xerrors.Is(err, &api.ErrActorNotFound{}) { return nil, nil } @@ -1797,6 +1797,8 @@ func (a *StateAPI) StateGetNetworkParams(ctx context.Context) (*api.NetworkParam UpgradeHyperdriveHeight: build.UpgradeHyperdriveHeight, UpgradeChocolateHeight: build.UpgradeChocolateHeight, UpgradeOhSnapHeight: build.UpgradeOhSnapHeight, + UpgradeSkyrHeight: build.UpgradeSkyrHeight, + UpgradeSharkHeight: build.UpgradeSharkHeight, }, }, nil }