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

tvx simulate command; tvx extract --ignore-sanity-checks #4554

Merged
merged 3 commits into from
Oct 23, 2020

Conversation

raulk
Copy link
Member

@raulk raulk commented Oct 23, 2020

This PR introduces a tvx simulate command that takes a raw base64-encoded CBOR message, and executes it against the provided epoch (or HEAD), generating a vector and optionally printing a statediff that displays the changes made to the state tree.

It also introduces an --ignore-sanity-checks flag on tvx extract, requested by @austinabell.


Closes #4476.

Comment on lines +15 to +21
// FullAPI is a JSON-RPC client targeting a full node. It's initialized in a
// cli.BeforeFunc.
var FullAPI api.FullNode

// Closer is the closer for the JSON-RPC client, which must be called on
// cli.AfterFunc.
var Closer jsonrpc.ClientCloser
Copy link
Member Author

Choose a reason for hiding this comment

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

These are now global vars in the main package initialized by the initialize cli.BeforeFunc.

@magik6k magik6k merged commit 91fae36 into master Oct 23, 2020
@magik6k magik6k deleted the tvx-simulate-2 branch October 23, 2020 13:58
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.

tvx simulate: take a raw message, play it against a tipset, and generate a vector
2 participants