@pioneer-platform/blockbook 8.1.43 → 8.1.45
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.
- package/lib/index.js +9 -4
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -57,7 +57,7 @@ axiosRetry(axios, {
|
|
|
57
57
|
return retryCount * 2000; // time interval between retries
|
|
58
58
|
},
|
|
59
59
|
retryCondition: function (error) {
|
|
60
|
-
console.error(error)
|
|
60
|
+
//console.error(error)
|
|
61
61
|
// if retry condition is not specified, by default idempotent requests are retried
|
|
62
62
|
return error.response.status === 503;
|
|
63
63
|
},
|
|
@@ -69,6 +69,11 @@ var BLOCKBOOK_URLS = {
|
|
|
69
69
|
'DOGE': process.env['DOGE_BLOCKBOOK_URL'],
|
|
70
70
|
'LTC': process.env['DOGE_BLOCKBOOK_URL'],
|
|
71
71
|
'DASH': process.env['DASH_BLOCKBOOK_URL'],
|
|
72
|
+
'DGB': process.env['DGB_BLOCKBOOK_URL'],
|
|
73
|
+
'ETHW': process.env['ETHW_BLOCKBOOK_URL'],
|
|
74
|
+
'BSC': process.env['BSC_BLOCKBOOK_URL'],
|
|
75
|
+
'ADA': process.env['ADA_BLOCKBOOK_URL'],
|
|
76
|
+
'GRS': process.env['GRS_BLOCKBOOK_URL']
|
|
72
77
|
};
|
|
73
78
|
module.exports = {
|
|
74
79
|
init: function (servers, runtime) {
|
|
@@ -309,8 +314,8 @@ var broadcast_transaction = function (coin, hex) {
|
|
|
309
314
|
case 5: return [2 /*return*/, output];
|
|
310
315
|
case 6:
|
|
311
316
|
e_6 = _a.sent();
|
|
312
|
-
console.error(tag,
|
|
313
|
-
|
|
317
|
+
//console.error(tag,e)
|
|
318
|
+
throw e_6;
|
|
314
319
|
case 7: return [2 /*return*/];
|
|
315
320
|
}
|
|
316
321
|
});
|
|
@@ -445,7 +450,7 @@ var init_network = function (servers, runtime) {
|
|
|
445
450
|
return true;
|
|
446
451
|
}
|
|
447
452
|
catch (e) {
|
|
448
|
-
console.error(tag, 'Error: ', e)
|
|
453
|
+
// console.error(tag, 'Error: ', e)
|
|
449
454
|
throw e;
|
|
450
455
|
}
|
|
451
456
|
};
|