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

Handle non-whitelisted contracts by fully reverting txn if gas limit is 21k #1994

Conversation

bzawisto
Copy link
Contributor

As title says, we want to implement the following behaviour:

  1. If gas = 21k and whitelisted -> allow it to run with gas::max_64()
  2. if gas = 21k and NOT whitelisted -> revert entire txn
  3. Otherwise, apply normal rules

Copy link
Contributor

🐰 Bencher Report

Branch1986-scilla_call-with-21k-gas-from-not-whitelisted-evm-contracts-must-revert
Testbedself-hosted
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
nanoseconds (ns)
(Result Δ%)
Upper Boundary
nanoseconds (ns)
(Limit %)
process-empty/process-empty📈 view plot
🚷 view threshold
9,683,700.00
(+4.06%)
11,354,928.82
(85.28%)
produce-full/produce-full📈 view plot
🚷 view threshold
2,643,500,000.00
(+2.41%)
2,789,526,398.92
(94.77%)
🐰 View full continuous benchmarking report in Bencher

@bzawisto bzawisto enabled auto-merge December 10, 2024 10:46
@bzawisto bzawisto added this pull request to the merge queue Dec 10, 2024
Merged via the queue into main with commit bde8f7e Dec 10, 2024
5 of 6 checks passed
@bzawisto bzawisto deleted the 1986-scilla_call-with-21k-gas-from-not-whitelisted-evm-contracts-must-revert branch December 10, 2024 11:06
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.

scilla_call with 21k gas from not whitelisted EVM contracts must revert
3 participants