@pioneer-platform/blockbook 8.1.54 → 8.1.56
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 +3 -4
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -233,17 +233,16 @@ var init_network = function (servers) {
|
|
|
233
233
|
return [3 /*break*/, 6];
|
|
234
234
|
case 6:
|
|
235
235
|
if (blockbooks.length === 0)
|
|
236
|
-
blockbooks
|
|
236
|
+
blockbooks = SERVERS_CONFIG;
|
|
237
237
|
log.info(tag, "blockbooks: ", blockbooks.length);
|
|
238
238
|
for (i = 0; i < blockbooks.length; i++) {
|
|
239
239
|
blockbook = blockbooks[i];
|
|
240
240
|
//get swagger
|
|
241
|
-
if (blockbook)
|
|
242
|
-
//log.info("unchainedInfo.swagger: ",unchainedInfo.swagger)
|
|
241
|
+
if (blockbook && blockbook.service)
|
|
243
242
|
BLOCKBOOK_URLS[blockbook.symbol.toUpperCase()] = blockbook.service;
|
|
243
|
+
if (blockbook && blockbook.websocket) {
|
|
244
244
|
url = blockbook.websocket.replace("/websocket", "");
|
|
245
245
|
url = blockbook.websocket.replace("wss://", "https://");
|
|
246
|
-
console.log("url: ", url);
|
|
247
246
|
BLOCKBOOK_SOCKETS[blockbook.symbol.toUpperCase()] = new Blockbook({
|
|
248
247
|
nodes: [url],
|
|
249
248
|
disableTypeValidation: true,
|