From 923d7ffe27bc6fc26a5aa468824e944d1ff4ea78 Mon Sep 17 00:00:00 2001 From: Beaudan Date: Tue, 18 Jun 2019 14:52:52 +1000 Subject: [PATCH] Change to get_n_service_nodes method --- js/modules/loki_snode_api.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/js/modules/loki_snode_api.js b/js/modules/loki_snode_api.js index fc79cd77f..df7b5e989 100644 --- a/js/modules/loki_snode_api.js +++ b/js/modules/loki_snode_api.js @@ -76,11 +76,18 @@ class LokiSnodeAPI { } async initialiseRandomPool() { + const params = { + limit: 20, + fields: { + public_ip: true, + storage_port: true, + }, + }; const result = await rpc( `http://${window.seedNodeUrl}`, window.seedNodePort, - 'get_service_nodes', - {}, // Params + 'get_n_service_nodes', + params, {}, // Options '/json_rpc' // Seed request endpoint );