Don't updatePendingTxs outside of block updates (#8445)

* Don't updatePendingTxs outside of block updates

Refs #8377

Reverts 507397f6c (#5431)

* Check for new block data on unlock
feature/default_network_editable
Whymarrh Whitby 5 years ago committed by GitHub
parent 53feb20803
commit 0e54c5aecd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      app/scripts/controllers/transactions/index.js
  2. 2
      app/scripts/metamask-controller.js

@ -757,7 +757,6 @@ export default class TransactionController extends EventEmitter {
Updates the memStore in transaction controller Updates the memStore in transaction controller
*/ */
_updateMemstore () { _updateMemstore () {
this.pendingTxTracker.updatePendingTxs()
const unapprovedTxs = this.txStateManager.getUnapprovedTxList() const unapprovedTxs = this.txStateManager.getUnapprovedTxList()
const currentNetworkTxList = this.txStateManager.getFilteredTxList({ const currentNetworkTxList = this.txStateManager.getFilteredTxList({
metamaskNetworkId: this.getNetwork(), metamaskNetworkId: this.getNetwork(),

@ -779,7 +779,7 @@ export default class MetamaskController extends EventEmitter {
await this.diagnostics.reportMultipleKeyrings(nonSimpleKeyrings) await this.diagnostics.reportMultipleKeyrings(nonSimpleKeyrings)
} }
await this.txController.pendingTxTracker.updatePendingTxs() await this.blockTracker.checkForLatestBlock()
try { try {
const threeBoxSyncingAllowed = this.threeBoxController.getThreeBoxSyncingState() const threeBoxSyncingAllowed = this.threeBoxController.getThreeBoxSyncingState()

Loading…
Cancel
Save