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

feat: stmgr: cache migrated stateroots #10282

Merged
merged 2 commits into from
Mar 9, 2023

Conversation

travisperson
Copy link
Contributor

Related Issues

#10048

Proposed Changes

  • Cache migration results to avoid running migrations twice when making calls that execute an upgrade epoch

Additional Info

Checklist

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

  • Commits have a clear commit message.
  • 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, build, chore, ci, docs, perf, refactor, revert, style, test
    • area, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps
  • New features have usage guidelines and / or documentation updates in
  • Tests exist for new functionality or change in behavior
  • CI is green

@travisperson travisperson force-pushed the feat/cache-migrated-stateroot branch from db2eede to 0859ecf Compare February 15, 2023 21:26
chain/stmgr/stmgr.go Outdated Show resolved Hide resolved
@travisperson travisperson force-pushed the feat/cache-migrated-stateroot branch 5 times, most recently from 2cc16e4 to a390d75 Compare February 23, 2023 04:32
@travisperson travisperson force-pushed the feat/cache-migrated-stateroot branch 3 times, most recently from b8901ef to 01cb869 Compare February 27, 2023 17:31
@travisperson travisperson marked this pull request as ready for review February 28, 2023 18:15
@travisperson travisperson requested a review from a team as a code owner February 28, 2023 18:15
@travisperson travisperson force-pushed the feat/cache-migrated-stateroot branch from 01cb869 to 9c0563f Compare March 1, 2023 15:02
@travisperson travisperson force-pushed the feat/cache-migrated-stateroot branch from 9c0563f to 814c146 Compare March 1, 2023 16:17
chain/stmgr/stmgr.go Outdated Show resolved Hide resolved
)

func StateManager(lc fx.Lifecycle, cs *store.ChainStore, exec stmgr.Executor, sys vm.SyscallBuilder, us stmgr.UpgradeSchedule, b beacon.Schedule) (*stmgr.StateManager, error) {
sm, err := stmgr.NewStateManager(cs, exec, sys, us, b)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are a lot of some one-line changes, this is an important one.

chain/stmgr/forks.go Outdated Show resolved Hide resolved
chain/stmgr/stmgr.go Outdated Show resolved Hide resolved
chain/stmgr/stmgr.go Outdated Show resolved Hide resolved
chain/stmgr/stmgr.go Outdated Show resolved Hide resolved
chain/stmgr/stmgr.go Outdated Show resolved Hide resolved
chain/stmgr/stmgr.go Outdated Show resolved Hide resolved
chain/stmgr/stmgr.go Outdated Show resolved Hide resolved
@travisperson travisperson force-pushed the feat/cache-migrated-stateroot branch from be5f530 to b4e589a Compare March 9, 2023 18:54
@travisperson travisperson merged commit f641139 into master Mar 9, 2023
@travisperson travisperson deleted the feat/cache-migrated-stateroot branch March 9, 2023 19:47
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.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants