MetaMask / MetaMask/metamask-extension

[Bug]: Bitcoin - Long list of API requests (25 calls) made to bitcoin infura to get txs, every 30s while another network is selected

Open
#46,448 0 comments 0 reactions 0 assignees View on GitHub
area-performance regression-prod-13.48.0 Sev2-normal team-core-platform team-networks type-bug
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

### Describe the bug

Long list of API requests (25 calls) made to bitcoin infura to get txs, every 30s while another network is selected

### Expected behavior

If I have another network selected, fetching every 30s bitcoin endpoint with 25 requests seems suboptimal

### Screenshots/Recordings

https://github.com/user-attachments/assets/23105cb4-81da-4181-9af8-7ef1de78a83c

### Steps to reproduce

1. Select another network (ie Mainnet)
2. Open offscreeen network requests tab
3. See txs requests every 30 seconds to bitcoin infura endpoint

### Error messages or log output

```shell

```

### Where was this bug found?

Live version (from official store)

### Version

13.48.0

### Build type

None

### Browser

Chrome

### Operating system

MacOS

### Hardware wallet

_No response_

### Additional context

_No response_

### Severity

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in Chrome with a non-Bitcoin network selected and inspect the network requests tab, focusing on the Bitcoin Infura requests recurring every 30 seconds. Trace those requests to the polling entry point and verify that selecting another network no longer triggers the 25-request Bitcoin fetch cycle.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.