@toruslabs/torus.js
Advanced tools
Comparing version 11.0.5 to 11.0.6
{ | ||
"name": "@toruslabs/torus.js", | ||
"version": "11.0.5", | ||
"version": "11.0.6", | ||
"description": "Handle communication with torus nodes", | ||
@@ -5,0 +5,0 @@ "main": "dist/torusUtils.cjs.js", |
@@ -91,4 +91,10 @@ import { LEGACY_NETWORKS_ROUTE_MAP, TORUS_LEGACY_NETWORK_TYPE, TORUS_NETWORK_TYPE } from "@toruslabs/constants"; | ||
if (x1 && x1.result) { | ||
const nodeIndex = parseInt(x1.result.node_index); | ||
if (nodeIndex) nodeIndexes.push(nodeIndex); | ||
const currentNodePubKey = x1.result.keys[0].pub_key_X.toLowerCase(); | ||
const thresholdPubKey = keyResult.keys[0].pub_key_X.toLowerCase(); | ||
// push only those indexes for nodes who are returning pub key matching with threshold pub key. | ||
// this check is important when different nodes have different keys assigned to a user. | ||
if (currentNodePubKey === thresholdPubKey) { | ||
const nodeIndex = parseInt(x1.result.node_index); | ||
if (nodeIndex) nodeIndexes.push(nodeIndex); | ||
} | ||
} | ||
@@ -95,0 +101,0 @@ }); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1660775
7346