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/faucet/main: adds flag use audit checks and refactors logic #276

Merged
merged 2 commits into from
Jan 8, 2021

Conversation

meowsbits
Copy link
Member

-ethstats and -bootnodes and -network flags
were not being checked for exclusivity with -attach.
Adding those checks, this also refactors the auditor
function.

Date: 2021-01-05 07:02:15-06:00
Signed-off-by: meows b5c6@protonmail.com

-ethstats and -bootnodes and -network flags
were not being checked for exclusivity with -attach.
Adding those checks, this also refactors the auditor
function.

Date: 2021-01-05 07:02:15-06:00
Signed-off-by: meows <b5c6@protonmail.com>
@meowsbits meowsbits changed the title main: adds flag use audit checks and refactors logic cmd/faucet/main: adds flag use audit checks and refactors logic Jan 5, 2021
{{"attach", attachFlag}, {"chain.<identity>", activeChainFlag}},
{{"attach", attachFlag}, {"genesis", genesisFlag}},
{{"attach", attachFlag}, {"ethstats", statsFlag}},
{{"attach", attachFlag}, {"ethport", ethPortFlag}},
Copy link
Member Author

Choose a reason for hiding this comment

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

ethPortFlag defaults to a nonzero 30303. Thanks @ziogaschr for catching this.

The ethPort default value is nonzero, making
this check incorrect.

Resolves #276 (comment)

Date: 2021-01-08 06:18:43-06:00
Signed-off-by: meows <b5c6@protonmail.com>
@meowsbits meowsbits merged commit 31013d1 into master Jan 8, 2021
@meowsbits meowsbits deleted the fix/faucet-more-flag-use-audits branch January 8, 2021 15:31
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.

2 participants