@pioneer-platform/blockbook 8.1.55 → 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 +2 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -238,12 +238,11 @@ var init_network = function (servers) {
|
|
|
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,
|