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

Add pow #48

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open

Add pow #48

wants to merge 24 commits into from

Conversation

DefiCake
Copy link
Member

@DefiCake DefiCake commented Nov 29, 2023

Closes #45

@DefiCake DefiCake marked this pull request as ready for review December 8, 2023 11:42
Copy link
Contributor

@xgreenx xgreenx left a comment

Choose a reason for hiding this comment

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

I still am not sure why we need PoW and what benefits it gives to us. In the end, for the user, it will be like "Wait, please X second". Automating PoW to pass is much easier than passing a captcha.

This should be enough to limit the number of active users.

The PoW works in the case of someone automated bypassing the captcha somehow. Then he can drain tokens. Plus with allowing pay for the fee in different assets, we can introduce a new faucet token that only our block producer will accept.

Comment on lines +342 to +427
Extension(sessions): Extension<SharedSessions>,
Extension(pow_difficulty): Extension<Arc<u8>>,
Copy link
Contributor

Choose a reason for hiding this comment

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

You can create one structure like PoW and store all related information there

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.

Add proof of work
2 participants