edge-currency-plugins 1.0.0-rc.3 → 1.0.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -140,8 +140,11 @@ var _utils3 = require('./utils');
|
|
|
140
140
|
**/
|
|
141
141
|
const processesPerAddress = 2
|
|
142
142
|
let processedCount = 0
|
|
143
|
-
let processedPercent = 0
|
|
143
|
+
let processedPercent = 0 // last sync ratio emitted
|
|
144
144
|
const updateProgressRatio = async () => {
|
|
145
|
+
// Avoid re-sending sync ratios / sending ratios larger than 1
|
|
146
|
+
if (processedPercent >= 1) return
|
|
147
|
+
|
|
145
148
|
// We expect the total number of progress updates to equal the number of
|
|
146
149
|
// addresses multiplied the number of processes per address.
|
|
147
150
|
const expectedProccessCount =
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "edge-currency-plugins",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.4",
|
|
4
4
|
"description": "Edge currency plugins to fetch and process wallet accounts, balances and transactions.",
|
|
5
5
|
"repository": "https://github.com/EdgeApp/edge-currency-plugins",
|
|
6
6
|
"license": "MIT",
|