Change to get_n_service_nodes method

This commit is contained in:
Beaudan 2019-06-18 14:52:52 +10:00
parent 4330e48185
commit 923d7ffe27

View file

@ -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
);