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

fix(api): Propagate fallback errors in traces #3469

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

popzxc
Copy link
Member

@popzxc popzxc commented Jan 14, 2025

(hopefully) fixes #3394
See the issue for the context.

Looks like some old transactions do not have error stored for out-of-gas errors. However, we know that they're failed, and we know that based on the error field from the transactions table.

This PR adds a "fallback" error -- if no other error is detected in the call trace, we use the error from the sequencer.

Granted, I do not have access to the mainnet DB, so not sure what error messages are inside, but if I am to guess, it will be more or less adequate. 😅

⚠️ To make things spicier, I have no way to test this functionality (per @dutterbutter report in the issue, it does not reproduce with the current protocol version), so it's kind of "hope it helps" fix. Please be careful during the review.

@popzxc popzxc force-pushed the popzxc-tracer-fallback-error branch from fe5ccd6 to c43a8f4 Compare January 14, 2025 07:52
@popzxc popzxc added this pull request to the merge queue Jan 14, 2025
Merged via the queue into main with commit 84e3e31 Jan 14, 2025
32 checks passed
@popzxc popzxc deleted the popzxc-tracer-fallback-error branch January 14, 2025 10:18
randomsuperher pushed a commit that referenced this pull request Jan 17, 2025
🤖 I have created a release *beep* *boop*
---


##
[26.0.0](core-v25.4.0...core-v26.0.0)
(2025-01-17)


### ⚠ BREAKING CHANGES

* **contracts:** gateway integration
([#1934](#1934))

### Features

* Adapt server for new EVM bytecode hash encoding
([#3396](#3396))
([5a1e6d2](5a1e6d2))
* Add logging & metrics for mempool
([#3447](#3447))
([64d861d](64d861d))
* **api_server:** report gas price based on open batch
([#2868](#2868))
([f30aca0](f30aca0))
* **contracts:** gateway integration
([#1934](#1934))
([f06cb79](f06cb79))
* da_dispatcher refactoring
([#3409](#3409))
([591cd86](591cd86))
* **en:** make documentation more chain agnostic
([#3376](#3376))
([361243f](361243f))
* **eth-sender:** make base fee grow at least as fast as priority fee
([#3386](#3386))
([78af2bf](78af2bf))
* **eth-watch:** Change protocol upgrade schema
([#3435](#3435))
([2c778fd](2c778fd))
* Features for an easier upgrade
([#3422](#3422))
([3037ee6](3037ee6))
* FFLONK support for compressor
([#3359](#3359))
([1a297be](1a297be))
* pubdata type changes from sync-layer-stable
([#3425](#3425))
([f09087b](f09087b))


### Bug Fixes

* **api:** Propagate fallback errors in traces
([#3469](#3469))
([84e3e31](84e3e31))
* **en:** make EN use main node's fee input
([#3489](#3489))
([cbf2c31](cbf2c31))
* eth aggregator restriction
([#3490](#3490))
([6cc9b9e](6cc9b9e))


### Performance Improvements

* **eth-sender:** optimize sql query
([#3437](#3437))
([0731f60](0731f60))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: Tomasz Grześkiewicz <[email protected]>
Co-authored-by: zksync-era-bot <[email protected]>
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.

Tracer doesn't detect out-of-gas errors
2 participants