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

Create Pcli #5644

Merged
merged 14 commits into from
Apr 27, 2020
Merged

Create Pcli #5644

merged 14 commits into from
Apr 27, 2020

Conversation

nisdas
Copy link
Member

@nisdas nisdas commented Apr 27, 2020

What type of PR is this?
Feature

What does this PR do? Why is it needed?

This creates a prysm specific cli, through which we can perform all the useful eth2 utilities.
Analogous to zcli,lcli,ncli for the other eth2 clients. This utility will help in debugging any state
root bugs. Currently it just performs manual state transitions.

Which issues(s) does this PR fix?

N.A

Other notes for review

N.A

@nisdas nisdas requested a review from a team as a code owner April 27, 2020 10:22
@nisdas nisdas added Ready For Review A pull request ready for code review Enhancement New feature or request labels Apr 27, 2020
farazdagi
farazdagi previously approved these changes Apr 27, 2020
Copy link
Contributor

@farazdagi farazdagi left a comment

Choose a reason for hiding this comment

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

Just couple of comment updates. Looks good otherwise.

tools/pcli/main.go Outdated Show resolved Hide resolved
tools/pcli/main.go Outdated Show resolved Hide resolved
Co-Authored-By: Victor Farazdagi <[email protected]>
tools/pcli/main.go Outdated Show resolved Hide resolved
Destination: &blockPath,
},
&cli.StringFlag{
Name: "preStatePath",
Copy link
Contributor

Choose a reason for hiding this comment

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

our cli flags are using dashes usually

Suggested change
Name: "preStatePath",
Name: "pre-state-path",

tools/pcli/main.go Outdated Show resolved Hide resolved


*State Transition Flags:*
--blockPath value Path to block file(ssz)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
--blockPath value Path to block file(ssz)
--block-path value Path to block file(ssz)

tools/pcli/README.md Outdated Show resolved Hide resolved
*State Transition Flags:*
--blockPath value Path to block file(ssz)
--preStatePath value Path to pre state file(ssz)
--expectedPostStatePath value Path to expected post state file(ssz)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
--expectedPostStatePath value Path to expected post state file(ssz)
--expected-post-state-path value Path to expected post state file(ssz)

Copy link
Contributor

@shayzluf shayzluf left a comment

Choose a reason for hiding this comment

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

only flag naming comments. that is going to be a great tool
Thanks

tools/pcli/main.go Outdated Show resolved Hide resolved
tools/pcli/main.go Outdated Show resolved Hide resolved
@prylabs-bulldozer prylabs-bulldozer bot merged commit e9191e7 into master Apr 27, 2020
@delete-merged-branch delete-merged-branch bot deleted the pCli branch April 27, 2020 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants