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

Limit daily gas consumption for AMB #286

Open
akolotov opened this issue Sep 15, 2019 · 0 comments
Open

Limit daily gas consumption for AMB #286

akolotov opened this issue Sep 15, 2019 · 0 comments

Comments

@akolotov
Copy link
Collaborator

At this particular moment there are no daily limits for the bridge operations in the AMB mode. The current limitation is only for maximum gas usage per call. It means that the user-contracts could send as many requests as they want. In order to reduce the risk of the DDoS attacks on the bridge validators it is suggested to introduce the following limits:

  • maximum daily gas usage per user-contract. The limit is set as one per bridge contract but will be calculated separately for each user-contract. If the limit is zero it will also allow to stop the bridge operations.
  • relay requests rate per user-contract. We can monitor number of failed requests (most probably it is an attempt to dry out validators accounts) originated by every user-contract and manage their rate by increasing the value of suggested parameter. E.g. 0 means that there is no limit on rate, 1 is for 1 request per block for particular user-contract, 10 corresponds to 1 request per 10 blocks for particular user-contract.
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

No branches or pull requests

1 participant