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

[NV13/Simulation] Feature to export state #6408

Closed
Stebalien opened this issue Jun 7, 2021 · 3 comments
Closed

[NV13/Simulation] Feature to export state #6408

Stebalien opened this issue Jun 7, 2021 · 3 comments
Assignees
Labels
kind/feature Kind: Feature P3 P3: Might get resolved

Comments

@Stebalien
Copy link
Member

Stebalien commented Jun 7, 2021

Simulation branch: #6406

We need a way to easily export state to a CAR from a simulation. I've written a command to export an arbitrary DAG, but it would be nice to have something a little more integrated to export a specific actor's state at a specific epoch on a specific simulation. E.g.:

lotus-sim [--simulation=...] state [--height=...] export [f0....]

Where the height, simulation, and actor are optional (if no actor is specified, we should export the state-tree.

@magik6k
Copy link
Contributor

magik6k commented Jun 8, 2021

We could integrate this with the chain get /ipld/path/with/the/selector/like/thing/@Ha:t0123/@state command (and add an --export flag to it)

(for that to work we also would need to update the lotus resolveOnce to work with different h/amt versions / widths (possibly just using ctx values to carry some metadata about network version))

@Stebalien
Copy link
Member Author

Yeah. The main issue is that the lotus simulation runs offline and I'd rather not spin up a node just to export something. Ideally the simulation would run as a daemon and expose the API, but that's more complicated.

But we may be able to re-use some of the logic?

@BigLep BigLep added this to the Network Hyperdrive milestone Jun 8, 2021
@ZenGround0 ZenGround0 self-assigned this Jun 8, 2021
@magik6k
Copy link
Contributor

magik6k commented Jun 8, 2021

It should be easy to just export the resolveOnce func, and use it in the export command in lotus-shed (#6405)

@Stebalien Stebalien added P3 P3: Might get resolved kind/feature Kind: Feature and removed hint/needs-triaging labels Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Kind: Feature P3 P3: Might get resolved
Projects
None yet
Development

No branches or pull requests

5 participants