Skip to content
This repository was archived by the owner on Oct 16, 2025. It is now read-only.

Revert "fix: ensure middleware uses latest block number (#416)"#421

Merged
Gudahtt merged 5 commits intomainfrom
jl/revert-useCache
Oct 15, 2025
Merged

Revert "fix: ensure middleware uses latest block number (#416)"#421
Gudahtt merged 5 commits intomainfrom
jl/revert-useCache

Conversation

@jiexi
Copy link
Copy Markdown
Member

@jiexi jiexi commented Oct 15, 2025

This reverts commit 65e0b97.


Note

Remove useCache: false from PollingBlockTracker.getLatestBlock() calls across middlewares; update changelog and raise Jest coverage thresholds.

  • Middleware:
    • Remove useCache: false from PollingBlockTracker.getLatestBlock() in src/block-cache.ts, src/block-ref-rewrite.ts, src/block-ref.ts, and src/retryOnEmpty.ts.
  • Changelog:
    • Add Unreleased “Fixed” note about preventing request delays and reverting #416.
  • Testing:
    • Increase Jest global coverage thresholds (branches, functions, lines, statements).

Written by Cursor Bugbot for commit 2edc83d. This will update automatically on new commits. Configure here.

@jiexi jiexi requested a review from a team as a code owner October 15, 2025 16:48
Gudahtt
Gudahtt previously approved these changes Oct 15, 2025
Copy link
Copy Markdown
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Gudahtt
Gudahtt previously approved these changes Oct 15, 2025
@Gudahtt Gudahtt dismissed their stale review October 15, 2025 17:21

Considering whether to merge this now or after reverting the breaking change on main

Gudahtt pushed a commit that referenced this pull request Oct 15, 2025
… core monorepo (#420)" (#423)

This reverts commit 5391380.

This breaking change is blocking a release fix that will include:
1. #421
2. #422

Will readd this commit after those two PRs are merged and a patch
release is cut

<!--
Thanks for your contribution! Take a moment to answer these questions so
that reviewers have the information they need to properly understand
your changes:

* What is the current state of things and why does it need to change?
* What is the solution your changes offer and how does it work?

Are there any issues or other links reviewers should consult to
understand this pull request better? For instance:

* Fixes #12345
* See: #67890
-->
Copy link
Copy Markdown
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Gudahtt Gudahtt enabled auto-merge (squash) October 15, 2025 17:39
@Gudahtt Gudahtt merged commit ec0c20f into main Oct 15, 2025
20 checks passed
@Gudahtt Gudahtt deleted the jl/revert-useCache branch October 15, 2025 17:40
Mrtenz pushed a commit to MetaMask/core that referenced this pull request Oct 16, 2025
… core monorepo (#420)" (#423)

This reverts commit d10c455.

This breaking change is blocking a release fix that will include:
1. MetaMask/eth-json-rpc-middleware#421
2. MetaMask/eth-json-rpc-middleware#422

Will readd this commit after those two PRs are merged and a patch
release is cut

<!--
Thanks for your contribution! Take a moment to answer these questions so
that reviewers have the information they need to properly understand
your changes:

* What is the current state of things and why does it need to change?
* What is the solution your changes offer and how does it work?

Are there any issues or other links reviewers should consult to
understand this pull request better? For instance:

* Fixes #12345
* See: #67890
-->
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants