hedera-mirror-node
hedera-mirror-node copied to clipboard
Implement a gas throttling mechanism in the web3
Problem
Currently we are only using a rate limiter per request in the web3 module. But if there are a lot of requests that requires a small amount of the gas the system may be a able to handle a larger number of request than in the current rate limit capacity.
Solution
Using bucket4j add a new bucket config that will consume the gas limit in the contract call and after the call will refund it from the bucket taking in to account the actual gas used by the request.
Alternatives
No response