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

cmd/puppeth: your Ethereum private network manager #13854

Merged
merged 2 commits into from Apr 10, 2017

Conversation

karalabe
Copy link
Member

@karalabe karalabe commented Mar 30, 2017

Puppeth

@mention-bot
Copy link

@karalabe, thanks for your PR! By analyzing the history of the files in this pull request, we identified @obscuren, @zsfelfoldi and @Gustav-Simonsson to be potential reviewers.

Copy link
Contributor

@fjl fjl left a comment

Choose a reason for hiding this comment

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

I can't really comment on the docker stuff, but the wizard works and feels friendly.

continue
}
if gist.Owner.Login == "" {
websocket.JSON.Send(conn, map[string]string{"error": "Nice try ;)"})
Copy link
Contributor

Choose a reason for hiding this comment

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

It's usually best to split up code into functions so the handling of the error can be done once. If you move handling of gists and their content into a function, you could remove most of the

websocket.JSON.Send(conn, map[string]string{"error": "..."})
continue

websocket.JSON.Send(conn, map[string]string{"error": "URL doesn't link to GitHub Gists"})
continue
}
log.Info("Faucet funs requested", "gist", msg.URL)
Copy link
Contributor

Choose a reason for hiding this comment

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

funs -> funds

</div>
<div class="row">
<div class="col-lg-8 col-lg-offset-2">
<div class="input-group">
Copy link
Contributor

Choose a reason for hiding this comment

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

HTML indentation is totally nuts here. Maybe use a formatter.

@karalabe
Copy link
Member Author

@fjl PTAL. I fixed the typo and the indentation. I did not have time tonight to address the error handling. Please consider whether you can live with the current code, and if not, I'll try to address it tomorrow.

@fjl fjl changed the title Puppeth cmd/puppeth: your Ethereum private network manager Apr 10, 2017
@fjl fjl merged commit 706a1e5 into ethereum:master Apr 10, 2017
@fjl
Copy link
Contributor

fjl commented Apr 10, 2017

I can live with almost anything, including this PR.

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.

None yet

3 participants