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

chore: state: add cli to get the manifest & actor cid for network v16 & up #8670

Merged
merged 3 commits into from
May 30, 2022

Conversation

jennijuju
Copy link
Member

@jennijuju jennijuju commented May 18, 2022

Related Issues

resolves #8661

image

image

image

Proposed Changes

Additional Info

image

Checklist

Before you mark the PR ready for review, please make sure that:

  • All commits have a clear commit message.
  • The PR title is in the form of of <PR type>: <area>: <change being made>
    • example: fix: mempool: Introduce a cache for valid signatures
    • PR type: fix, feat, INTERFACE BREAKING CHANGE, CONSENSUS BREAKING, build, chore, ci, docs,perf, refactor, revert, style, test
    • area: api, chain, state, vm, data transfer, market, mempool, message, block production, multisig, networking, paychan, proving, sealing, wallet, deps
  • This PR has tests for new functionality or change in behaviour
  • If new user-facing features are introduced, clear usage guidelines and / or documentation updates should be included in https://lotus.filecoin.io or Discussion Tutorials.
  • CI is green

@jennijuju jennijuju requested a review from a team as a code owner May 18, 2022 05:55
@jennijuju jennijuju changed the title chore: state: add cli to get the actor cid for the current network version chore: state: add cli to get the manifest & actor cid for network v16 & up May 30, 2022
cli/state.go Outdated
_, _ = fmt.Fprintln(tw, "\nActor\tCID\t")

for _, name := range []string{
actors.AccountKey,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I bug you to make one refactor? Add:

func GetBuiltinActorsKeys() []string {
	return []string{
		AccountKey,
		CronKey,
		InitKey,
		MarketKey,
		MinerKey,
		MultisigKey,
		PaychKey,
		PowerKey,
		RewardKey,
		SystemKey,
		VerifregKey,
	}
}

to chain/actors/manifest.go, and use that here (and in chain/actors/manifest.go).

@jennijuju
Copy link
Member Author

image

Copy link
Contributor

@arajasek arajasek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with a nit!

@@ -140,3 +129,19 @@ func CanonicalName(name string) string {

return name
}

func GetBuiltinActorsKeys() []string {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's put this at the top of the file (right after the keys themselves are defined).

@jennijuju jennijuju merged commit 5b3a6e8 into feat/nv16 May 30, 2022
@jennijuju jennijuju deleted the jen/actorcid branch May 30, 2022 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants