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, cmd/puppeth: support multi-tiered faucet #14402

Merged
merged 2 commits into from
May 4, 2017

Conversation

karalabe
Copy link
Member

@karalabe karalabe commented May 2, 2017

Different people have different work styles. Some like to request faucet funds more frequently, some want a big batch that they can then spend without worrying about more. This PR adds a tiered feature to the faucet that supports retrieving bigger amounts of funds in exchange for longer request timeout.

There is a slight preference towards more frequent requests via a funding penalty on large amounts.

@karalabe karalabe added this to the 1.6.1 milestone May 2, 2017
period /= 60
periods[i] = fmt.Sprintf("%d hours", period)
}
if period%24 == 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't follow.. So period is expressed in minutes. So what if it's set to 24 minutes - divisable by 24 but not by 60 ? Don't you need to always divide by 60, not just when it's divisable by 60 ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Whoops. Good catch!

Copy link
Member Author

Choose a reason for hiding this comment

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

I added this last minute since until now we didn't care about days. Fil fix in a moment.

Copy link
Member Author

Choose a reason for hiding this comment

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

Pushed a commit to fix it.

@karalabe karalabe merged commit 1c2f6f5 into ethereum:master May 4, 2017
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

2 participants