Skip to content

Commit

Permalink
fix/ background block numbers pulls (#340)
Browse files Browse the repository at this point in the history
increasing the time between pulls.
  • Loading branch information
chk0912 authored Feb 3, 2023
1 parent bd01e22 commit fe92fed
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,12 @@ export default class BlockUpdatesController extends BaseController<BlockUpdatesC
*/
private addNewOnBlockListener() {
if (!this.activeSubscriptions) {
// when there is no active subscriptions (the extension is closed and locked)
// the blocks are synced every 5 minutes.
this._blockFetchController.addNewOnBlockListener(
this._networkController.network.chainId,
this._blockUpdates,
1 * MINUTE
5 * MINUTE
);
} else {
this._blockFetchController.addNewOnBlockListener(
Expand Down

0 comments on commit fe92fed

Please sign in to comment.