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

Improve binary search #2524

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Improve binary search #2524

wants to merge 4 commits into from

Conversation

AnkushinDaniil
Copy link
Contributor

Important

Review after #2523

Fixes #2519

@AnkushinDaniil AnkushinDaniil changed the title Daniil/improve bs Improve binary search Feb 19, 2025
Copy link

codecov bot commented Feb 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.41%. Comparing base (1709a05) to head (3240ab7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2524      +/-   ##
==========================================
- Coverage   73.52%   73.41%   -0.11%     
==========================================
  Files         136      136              
  Lines       16659    16659              
==========================================
- Hits        12248    12230      -18     
- Misses       3545     3556      +11     
- Partials      866      873       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

- Introduced `ExecutionError` enum to encapsulate different error types, including `TransactionExecutionError` and `CustomError`.
- Added `SimulationError` enum to handle specific simulation-related errors such as `OutOfGas` and `ExecutionError`.
- Implemented `fmt::Display` and `From` traits for `ExecutionError` and `SimulationError` to provide meaningful error messages and conversions.
- Replaced the use of `anyhow::anyhow!` with structured error handling using the new error types.
- Updated `execute_transaction` to use the new `ExecutionError` type.
- Refactored `is_l2_gas_accounting_enabled`, `get_gas_vector_computation_mode`, `simulate_execution`, `set_l2_gas_limit`, and `extract_l2_gas_limit` functions to handle errors using the new error types.
@AnkushinDaniil AnkushinDaniil added rust Pull requests that update Rust code Optimisation New feature or request labels Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Optimisation New feature or request rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider getting the upper bound from the balance and not changing the execution flags
1 participant