diff --git a/src/helpers/nodeUtils.ts b/src/helpers/nodeUtils.ts index 735fa1c..9f6e607 100644 --- a/src/helpers/nodeUtils.ts +++ b/src/helpers/nodeUtils.ts @@ -228,7 +228,7 @@ export async function retrieveOrImportShare(params: { return Promise.resolve(resultArr); } else if (importedShares?.length === 0 && completedRequests.length >= ~~((endpoints.length * 3) / 4) + 1) { const requiredNodeResult = completedRequests.find((resp: void | JRPCResponse) => { - if (resp && resp.result?.nodeindex === "1") { + if (resp) { return true; } return false; @@ -315,7 +315,7 @@ export async function retrieveOrImportShare(params: { }), null, { logTracingHeader: config.logRequestTracing } - ).catch((err) => log.error("share req", err)); + ); promiseArrRequest.push(p); } }