-
Notifications
You must be signed in to change notification settings - Fork 20
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
base: master
Are you sure you want to change the base?
Add pow #48
Conversation
0d4fc94
to
603c435
Compare
There was a problem hiding this 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.
Extension(sessions): Extension<SharedSessions>, | ||
Extension(pow_difficulty): Extension<Arc<u8>>, |
There was a problem hiding this comment.
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
b6897fe
to
41a93b3
Compare
Closes #45