mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
Change to get_n_service_nodes method
This commit is contained in:
parent
4330e48185
commit
923d7ffe27
1 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue