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

Consume flat gas fee on VerifyMembership rpc #5902

Closed
3 tasks
damiannolan opened this issue Feb 26, 2024 · 0 comments · Fixed by #5927
Closed
3 tasks

Consume flat gas fee on VerifyMembership rpc #5902

damiannolan opened this issue Feb 26, 2024 · 0 comments · Fixed by #5927
Assignees
Labels
02-client type: refactor Architecture, code or CI improvements that may or may not tackle technical debt.

Comments

@damiannolan
Copy link
Member

damiannolan commented Feb 26, 2024

Summary

Consume a flat gas fee on the meter in the VerifyMembership rpc handler based on len(msg.Proof).
This could be multiplied by some sane default or configurable value.

This should provide some low level of defence against clients calling one another in chain. Consuming a flat fee should incur an error: out of gas in situations described above.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged/assigned
@damiannolan damiannolan added type: refactor Architecture, code or CI improvements that may or may not tackle technical debt. 02-client labels Feb 26, 2024
@damiannolan damiannolan added this to the v9.0.0 milestone Feb 26, 2024
@charleenfei charleenfei self-assigned this Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
02-client type: refactor Architecture, code or CI improvements that may or may not tackle technical debt.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants