This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
forked from matter-labs/zksync-era
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(api): Fix transaction methods for pruned transactions (matter-lab…
…s#2168) ## What ❔ Reworks `TxCache` for full nodes to look more like a mempool: - Retains transactions from it when they are sent to the main node - Gets rid of querying transactions from the main node in `TxProxy`. ## Why ❔ Right now, two transaction-related methods (`eth_getTransactionByHash` and `zks_getTransactionDetails`) return data for pruned transactions. Some other methods (e.g., `eth_getTransactionReceipt`) do not return data for pruned transactions (i.e., return `null`). This looks inconsistent; also may be wasteful w.r.t. calls to the main node. ## Checklist - [x] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [x] Tests for the changes have been added / updated. - [x] Documentation comments have been added / updated. - [x] Code has been formatted via `zk fmt` and `zk lint`. - [x] Spellcheck has been run via `zk spellcheck`.
- Loading branch information
Showing
7 changed files
with
681 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.