1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
Dan Finlay 8eb91e89bf Increment tx ids to avoid collisions
Fixes #791

It was possible for two requests to have the same ID, causing a crash and loss of StreamProvider connection.

This new id generation strategy creates a random ID, and increments it for each request.

In case the id generator is included from two different processes, I'm initializing the counter at a random number, and rolling it over a large number when it gets too big.
2016-11-17 14:05:12 -08:00
..
2016-06-21 13:18:32 -07:00
2016-10-13 15:10:29 -07:00
2016-10-13 16:04:23 -07:00
2016-06-21 13:18:32 -07:00
2016-10-04 13:10:28 -07:00
2016-06-21 13:18:32 -07:00