1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app
Dan Finlay c7233e2cc7
Fixed Vivek's bug (#5860)
* Fixed Vivek's bug

Fixes #5850

What was happening:

It seems that his MetaMask had crashed while some new transactions had
been loading defaults. He probably had a network connectivity issue to
Infura (which we are working with Infura to address).

As a result of this network cutout, his three unapproved transactions
were not marked failed, and were not marked as `loadingDefaults =
false`, as their gas prices had not yet been estimated.

Normally this behavior is supposed to clean itself up when the
transaction controller starts up, via the
`TransactionController._onBootCleanUp()` function, but in this case,
during unlock, that function was unable to do its job because when it
requested the transaction list, the current network was in the `loading`
state, making it proceed as if there were no pending transactions.

To fix this, I am doing two things:
- Setting transactions to loadingDefaults = false in more catch blocks.
- Calling `onBootCleanUp()` when the network store's status changes, so
that it will re-trigger when loading completes.

* Fixed reference

* Fixed infinite loop bug

Was refreshing the tx list on every tx state change instead of just
network changes, creating an infinite loop.

* Add notes to tx updates to clarify logs
2018-11-29 16:08:03 -08:00
..
_locales Increase Token Symbol length to twelve 2018-11-22 12:39:59 -06:00
fonts Check in all font files locally. 2018-02-28 13:03:46 -08:00
images Remove "Beta" from header logo 2018-11-20 14:04:50 -03:30
scripts Fixed Vivek's bug (#5860) 2018-11-29 16:08:03 -08:00
vendor/trezor handle onDisconnect 2018-08-22 13:39:43 -04:00
404.html Update 404.html 2018-06-02 00:00:11 +08:00
error.html Rename files 2018-05-29 12:44:37 +08:00
home.html Bundle some ui dependencies separately to limit the build size of ui.js 2018-10-31 20:47:22 -02:30
loading.html ens-ipfs - refactor for readability (#5568) 2018-10-21 05:48:15 -04:00
manifest.json Version 5.0.4 RC1 (#5859) 2018-11-29 11:43:00 -10:00
notification.html Bundle some ui dependencies separately to limit the build size of ui.js 2018-10-31 20:47:22 -02:30
phishing.html Style links on phishing page with an underline 2018-10-02 10:45:39 -02:30
popup.html Bundle some ui dependencies separately to limit the build size of ui.js 2018-10-31 20:47:22 -02:30
trezor-usb-permissions.html trezor v5 working on firefox 2018-08-05 02:43:02 -04:00
unsupport.html Rename files 2018-05-29 12:44:37 +08:00