You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 16, 2025. It is now read-only.
The #pendingLatestBlock private instance variable was added to track a pending request for the latest block. However, if _isRunning was true when this was setup, and the polling loop is stopped before the fetch request was initiated, #pendingLatestBlock would stay unresolved forever.
We should reject #pendingLatestBlock if the polling loop is stopped.
Steps to reproduce:
Start the block tracker
Wait for the first block update to resolve
Immediately after, call getLatestBlock
Immediately after, stop the block tracker.
The call to getLatestBlock would then never resolve
The
#pendingLatestBlockprivate instance variable was added to track a pending request for the latest block. However, if_isRunningwas true when this was setup, and the polling loop is stopped before the fetch request was initiated,#pendingLatestBlockwould stay unresolved forever.We should reject
#pendingLatestBlockif the polling loop is stopped.Steps to reproduce:
getLatestBlockgetLatestBlockwould then never resolve