Not working `ACCELERATED_INTERVAL` for `onLatestBlock` of `PendingTransactionTracker`
- Dominant language
- TypeScript
- Stars
- 413
- Forks
- 308
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 253
Description
https://github.com/MetaMask/core/blob/a4b99231ff2ed406862938d38790611dcc8af37b/packages/transaction-controller/src/helpers/TransactionPoller.ts#L108
https://github.com/MetaMask/core/blob/a4b99231ff2ed406862938d38790611dcc8af37b/packages/transaction-controller/src/helpers/PendingTransactionTracker.ts#L197
According to this code snippet logic, `onLatestBlock` of `PendingTransactionTracker` should be called every 3 seconds first 10 times.
I've filtered RPC requests for `eth_blockNumber` & `eth_sendRawTransaction` & `eth_getTransactionReceipt`.
As a result, it takes around 20 seconds from sending `eth_sendRawTransaction` to sending `eth_getTransactionReceipt`.
If ACCELERATED_INTERVAL is working correctly, `eth_blockNumber` request should be sent every 3 seconds first 10 times, we should get the confirms of transactions within 3 seconds at least.
Acctually, I am getting it within 10~20 seconds.









Contributor guide
No contributing guide indexed for this repository
Research direction
Start with packages/transaction-controller/src/helpers/TransactionPoller.ts around line 108 and PendingTransactionTracker.ts around line 197. Reproduce the transaction flow while filtering eth_blockNumber, eth_sendRawTransaction, and eth_getTransactionReceipt, then compare the observed polling intervals with the expected ACCELERATED_INTERVAL behavior. Done means the accelerated polling behavior and transaction receipt timing match the issue’s stated expectation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- backend, blockchain
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100