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

Don't apply subjective billing to read-only transactions #114

Merged
merged 8 commits into from
Apr 20, 2022

Conversation

ndcgundlach
Copy link
Contributor

This PR turns off subjective billing for read-only transactions.

*** Warning ***
An effect of this change is that compute_transaction becomes a potential DOS attack vector for any node that has enabled the compute_transaction end point. Any exposed node should implement some form of throttling to prevent this sort of attack.

@ndcgundlach ndcgundlach requested a review from heifner April 19, 2022 20:40
plugins/producer_plugin/producer_plugin.cpp Show resolved Hide resolved
plugins/producer_plugin/producer_plugin.cpp Show resolved Hide resolved
plugins/producer_plugin/producer_plugin.cpp Outdated Show resolved Hide resolved
tests/Node.py Show resolved Hide resolved
Copy link
Member

@heifner heifner left a comment

Choose a reason for hiding this comment

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

Currently read-only transactions are signaled in controller as accepted_transaction and as applied_transaction. I think we should avoid signaling read-only transactions. Also read-only transaction traces are logged in deep-mind logger as applied. I think we should not deep-mind log them either.

@ndcgundlach ndcgundlach merged commit a598e2b into feature/oci_api_phase1 Apr 20, 2022
@ndcgundlach ndcgundlach deleted the ENFS-59-no-sub-billing-ro branch April 20, 2022 17:45
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.

2 participants